Created
May 2, 2016 16:35
-
-
Save fongreecss/3f9516ab65d4ea688f8f9502d98564ab to your computer and use it in GitHub Desktop.
converts html classname "no-js" to "js" if javascript is enabled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var html = document.documentElement; | |
html.className = html.className.replace(/\bno-js\b/g, 'js'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment