Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: static/js/main.js

Issue 29587584: Issue 5635 - Implement website-default navbar component (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Patch Set: Created Oct. 24, 2017, 10:32 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: static/js/main.js
===================================================================
new file mode 100644
--- /dev/null
+++ b/static/js/main.js
@@ -0,0 +1,14 @@
+(function()
juliandoucette 2017/10/26 15:55:56 NIT/Suggest: You can push this separately (sooner)
ire 2017/10/31 08:04:00 See https://codereview.adblockplus.org/29592626
juliandoucette 2017/10/31 12:10:38 Acknowledged.
+{
+ document.addEventListener("DOMContentLoaded", function()
+ {
+
+ /**************************************************************************
+ * General
+ **************************************************************************/
+
+ // Change html class name from "no-js" to "js"
+ document.documentElement.className = "js";
+
+ }, false);
+}());

Powered by Google App Engine
This is Rietveld