Skip to content

Instantly share code, notes, and snippets.

@benjaminreid
Created January 24, 2017 13:22
Show Gist options
  • Save benjaminreid/d966026550b3afc15ada07b618a3fcba to your computer and use it in GitHub Desktop.
Save benjaminreid/d966026550b3afc15ada07b618a3fcba to your computer and use it in GitHub Desktop.
Removes the "no-js" class and replaces with "js" without altering other classes
(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment