From 087cd4e6454c1053654b21501ed7f78e3a753016 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 16 May 2015 16:33:47 -0400 Subject: [PATCH] maybe this will fix #197 (timing issue?) --- platform/chromium/vapi-background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/chromium/vapi-background.js b/platform/chromium/vapi-background.js index 34bbc9dbb..9c9f23106 100644 --- a/platform/chromium/vapi-background.js +++ b/platform/chromium/vapi-background.js @@ -727,12 +727,12 @@ vAPI.onLoadAllCompleted = function() { vAPI.tabs.injectScript(tabId, { file: 'js/vapi-client.js', allFrames: true, - runAt: 'document_start' + runAt: 'document_idle' }, function(){ }); vAPI.tabs.injectScript(tabId, { file: 'js/contentscript-start.js', allFrames: true, - runAt: 'document_start' + runAt: 'document_idle' }, function(){ scriptEnd(tabId); }); }; var bindToTabs = function(tabs) {