diff --git a/docs/chrome_large_marquee.svg b/docs/chrome_large_marquee.svg
index e93cc72..2a9d854 100644
--- a/docs/chrome_large_marquee.svg
+++ b/docs/chrome_large_marquee.svg
@@ -17,8 +17,8 @@
inkscape:version="0.92.3 (2405546, 2018-03-11)"
sodipodi:docname="chrome_large_marquee.svg"
inkscape:export-filename="/home/lukas/git/piwik-injector/docs/chrome_large_marquee.png"
- inkscape:export-xdpi="25.4"
- inkscape:export-ydpi="25.4">
+ inkscape:export-xdpi="96.000008"
+ inkscape:export-ydpi="96.000008">
-1) {
- hosts.splice(index, 1);
- }
- chrome.storage.sync.set({"hosts": hosts});
+ chrome.storage.sync.get("hosts", function(items) {
+ var hosts = items.hosts;
+ var index = hosts.indexOf(popup.url);
+ if (index > -1) {
+ hosts.splice(index, 1);
}
- );
+ chrome.storage.sync.set({"hosts": hosts});
+ }
+ );
- chrome.storage.sync.remove(popup.url);
+ chrome.storage.sync.remove(popup.url);
- // Set-up empty data
- popup.data = Object.assign(true, {}, popup.emptyDataPattern);
- popup.applyData();
+ // Set-up empty data
+ popup.data = Object.assign(true, {}, popup.emptyDataPattern);
+ popup.applyData();
- popup.removeDraft();
- }
+ popup.removeDraft();
return false;
},
diff --git a/js/run.js b/js/run.js
index e396fbc..095d642 100644
--- a/js/run.js
+++ b/js/run.js
@@ -67,6 +67,7 @@
chrome.storage.sync.get(website, function(obj) {
var customjs = obj[website];
if (customjs && customjs.config.enable) {
+ console.error(customjs);
// Script
if (customjs.source) {
setTimeout(function() {
diff --git a/manifest.json b/manifest.json
index 425ed76..884ea08 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "__MSG_extension_name__",
"short_name": "matomo-injector",
- "version": "3.3.0",
+ "version": "3.3.1",
"author": "Lukas Winkler, xcv58, hromadadan",
"description": "__MSG_extension_description__",
"icons": {