first implementation

This commit is contained in:
Tobias Miesel
2018-10-17 15:21:32 +02:00
parent 0f8209ca22
commit 7c2b4fae5b
20 changed files with 65105 additions and 52 deletions

View File

@@ -108,13 +108,10 @@ chrome.tabs.onUpdated.addListener(function (tabId, changeInfo, tab) {
file: "/styles.css"
}, function () {
chrome.tabs.executeScript(tabId, {
code: "const div = document.createElement('div'); div.setAttribute('id', 'moco'); document.body.appendChild(div)"
file: "/bubble.js"
}, function () {
chrome.tabs.executeScript(tabId, {
file: "/popup.js"
}, function () {
console.log("inejected /popup.js");
});
// chrome.tabs.executeScript(tabId, {file: "/popup.js"}, () => {
console.log("injected bubble.js"); // })
});
});
});
@@ -148,7 +145,7 @@ function () {
_createClass(DomainCheck, [{
key: "hasMatch",
get: function get() {
return this.url.match(/github/);
return this.url.match(/github/) || this.url.match(/trello/) || this.url.match(/mocoapp/);
}
}]);