mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Refactored selectors for easier extensibility
This commit is contained in:
@@ -178,8 +178,13 @@ class Controller {
|
||||
actuallyupdate() {
|
||||
this.messageID++;
|
||||
//console.log("Update! Our page is " + this.page + ", our tab id " + this.tabId)
|
||||
chrome.tabs.executeScript(this.tabId,{"file":"sites/" + pages[this.page]["script"]});
|
||||
chrome.tabs.executeScript(this.tabId,{"file":"sitescript.js"});
|
||||
try {
|
||||
chrome.tabs.executeScript(this.tabId,{"file":"sites/" + pages[this.page]["script"]});
|
||||
chrome.tabs.executeScript(this.tabId,{"file":"sitescript.js"});
|
||||
}
|
||||
catch (e) {
|
||||
console.log("Could not run site script. Tab probably closed or something idk.")
|
||||
}
|
||||
|
||||
this.alreadyQueued = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user