From 8bcac9d3c380b7b6c5d75070f2b78677656d5bd5 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Mon, 29 Sep 2014 13:09:10 -0300 Subject: [PATCH] fix extension in chrome --- browser-extensions/include | 3 ++- index.html | 26 ++------------------------ init.js | 20 ++++++++++++++++++++ 3 files changed, 24 insertions(+), 25 deletions(-) create mode 100644 init.js diff --git a/browser-extensions/include b/browser-extensions/include index 04f4f8513..346645ba0 100644 --- a/browser-extensions/include +++ b/browser-extensions/include @@ -5,9 +5,10 @@ js sound views config.js +init.js version.js index.html popup.html lib/angular/angular-csp.css lib/angular/angular.min.js.map -lib/angular-route/angular-route.min.js.map \ No newline at end of file +lib/angular-route/angular-route.min.js.map diff --git a/index.html b/index.html index 91c882fa4..b7b0c4eb2 100644 --- a/index.html +++ b/index.html @@ -20,33 +20,10 @@ - +
Loading...
-
@@ -107,6 +84,7 @@ + diff --git a/init.js b/init.js new file mode 100644 index 000000000..c4cb7298a --- /dev/null +++ b/init.js @@ -0,0 +1,20 @@ +var ld = (document.all); +var ns4 = document.layers; +var ns6 = document.getElementById && !document.all; +var ie4 = document.all; +if (ns4) { + ld = document.loading; +} else if (ns6) { + ld = document.getElementById("loading").style; +} else if (ie4) { + ld = document.all.loading.style; +} + +function init() { + if (ns4) { + ld.visibility = "hidden"; + } else if (ns6 || ie4) { + ld.display = "none"; + } +} +init();