aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js/header_badges.js
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-12-10 14:25:29 -0500
committerGitHub <noreply@github.com>2017-12-10 14:25:29 -0500
commit1d4380cee77fc049a54d280a27dcefa3fa6ff1fd (patch)
tree6aa222b3f88862a46c8ffd0e46bfb94755d54729 /app/src/main/assets/js/header_badges.js
parent30eb51a44a271512e27c97aecc02f3a339f572bf (diff)
downloadfrost-1d4380cee77fc049a54d280a27dcefa3fa6ff1fd.tar.gz
frost-1d4380cee77fc049a54d280a27dcefa3fa6ff1fd.tar.bz2
frost-1d4380cee77fc049a54d280a27dcefa3fa6ff1fd.zip
theme (#546)
* Update to coffee and use webstorm * Add chrome as well * Update all * Reinstall android 27
Diffstat (limited to 'app/src/main/assets/js/header_badges.js')
-rw-r--r--app/src/main/assets/js/header_badges.js17
1 files changed, 14 insertions, 3 deletions
diff --git a/app/src/main/assets/js/header_badges.js b/app/src/main/assets/js/header_badges.js
index 26315a5f..13447229 100644
--- a/app/src/main/assets/js/header_badges.js
+++ b/app/src/main/assets/js/header_badges.js
@@ -1,3 +1,14 @@
-//bases the header contents if it exists
-var header = document.getElementById('mJewelNav');
-if (header !== null) Frost.handleHeader(header.outerHTML);
+"use strict";
+
+(function () {
+ // bases the header contents if it exists
+ var header;
+
+ header = document.getElementById("mJewelNav");
+
+ if (header !== null) {
+ if (typeof Frost !== "undefined" && Frost !== null) {
+ Frost.handleHeader(header.outerHTML);
+ }
+ }
+}).call(undefined); \ No newline at end of file