aboutsummaryrefslogtreecommitdiff
path: root/contexts/data/fiveui/chrome/background.js
diff options
context:
space:
mode:
authorGravatar Rogan Creswick <creswick@gmail.com>2013-01-28 15:52:03 -0800
committerGravatar Rogan Creswick <creswick@gmail.com>2013-01-28 15:52:03 -0800
commitca69f84825da44598a29f57dce4c16691c29d449 (patch)
treee9f95396082fd4875955634e3f53dec406f4bfac /contexts/data/fiveui/chrome/background.js
parentac5da6bf6071cb6e9f83728f5b1ff71c739b8b8c (diff)
updates to account for recent changes in Chrome
Diffstat (limited to 'contexts/data/fiveui/chrome/background.js')
-rw-r--r--contexts/data/fiveui/chrome/background.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/contexts/data/fiveui/chrome/background.js b/contexts/data/fiveui/chrome/background.js
index eab6798..4d34658 100644
--- a/contexts/data/fiveui/chrome/background.js
+++ b/contexts/data/fiveui/chrome/background.js
@@ -158,3 +158,10 @@ fiveui.chrome.background = function() {
background.showUI(tab.id);
});
};
+
+// Add event listeners once the DOM has fully loaded by listening for the
+// `DOMContentLoaded` event on the document, and adding your listeners to
+// specific elements when it triggers.
+document.addEventListener('DOMContentLoaded', function () {
+ fiveui.chrome.background();
+}); \ No newline at end of file