Skip to content

TagSpaces is an offline, open source, document manager with tagging support

oops

roobin6dbd3758f3f8
diff --git a/data/chromelight/popup.js b/data/chromelight/popup.js
index e0905cd8e..9679709ef 100644
--- a/data/chromelight/popup.js
+++ b/data/chromelight/popup.js
@@ -91,7 +91,8 @@
}
function saveAsBookmark() {
- var filename;
+ chrome.tabs.getSelected(null, function(tab) {
+ var filename;
tags = document.getElementById("tags").value;
if (tags) {
tags = tags.split(",").join(" ");
@@ -101,6 +102,7 @@
}
var content = '[InternetShortcut]\r\nURL=' + tab.url;
saveAs(content, filename);
+ });
}
function saveAsMHTML() {