aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js/header_badges.js
diff options
context:
space:
mode:
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