Index: chrome/ext/background.js |
diff --git a/chrome/ext/background.js b/chrome/ext/background.js |
index 8cec8296408b0cafb5452c7eb0afb6e67d59035b..7d751930c9cd9f3861debf503dfa25e43cc14db2 100644 |
--- a/chrome/ext/background.js |
+++ b/chrome/ext/background.js |
@@ -549,10 +549,10 @@ |
{ |
if (tabs.length > 0) |
{ |
- window.setTimeout(() => |
- { |
+ if (tabs[0].status == "complete") |
callback(new Page(tabs[0])); |
- }); |
+ else |
+ afterTabLoaded(callback)(tabs[0]); |
} |
}); |
}); |