forked from bitpay/wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.js
More file actions
29 lines (27 loc) · 664 Bytes
/
init.js
File metadata and controls
29 lines (27 loc) · 664 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
var isChromeApp = window.chrome && chrome.runtime && chrome.runtime.id;
var ld;
if (!isChromeApp) {
ld = (document.all);
}
var ns4 = document.layers;
var ns6 = !isChromeApp && document.getElementById && !document.all;
var ie4 = !isChromeApp && 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";
} else {
ld = document.getElementById("loading").style;
ld.visibility = "hidden";
ld.display = "none";
}
}
init();