From 31571c189559c0c8e3247401c358dd7cd0b93734 Mon Sep 17 00:00:00 2001 From: Trevor Elliott Date: Mon, 17 Jun 2013 15:48:35 -0700 Subject: Fix the strange phantom ui box The onCreated event wasn't actually useful for us to pay attention to, as it would fire just before an onUpdated event on the same page. --- src/js/chrome/js/platform-background.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/js/chrome/js/platform-background.js b/src/js/chrome/js/platform-background.js index e736a60..4e7024d 100644 --- a/src/js/chrome/js/platform-background.js +++ b/src/js/chrome/js/platform-background.js @@ -131,13 +131,6 @@ fiveui.chrome.background = function() { background.connect(tabId, port, url, chPort.name == 'ui'); }); - - chrome.tabs.onCreated.addListener(function(tab) { - if (tab.url) { - background.pageLoad(tab.id, tab.url); - } - }); - // check page load events against the generic background chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) { if (changeInfo.status == 'complete') { -- cgit v1.2.3