Skip to content

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

adding a sample code for badge text on the extension icon

uggrockdaa962c317f9
diff --git a/data/chromelight/chrome.api.js b/data/chromelight/chrome.api.js
index 3b6664ae6..afc80ea6e 100644
--- a/data/chromelight/chrome.api.js
+++ b/data/chromelight/chrome.api.js
@@ -23,6 +23,9 @@
var dataFile = '",0,"';
var dataDir = '",1,"';
+ // chrome.browserAction.setBadgeBackgroundColor({ color: '#00ff00' });
+ // chrome.browserAction.setBadgeText({text: '9999'});
+
function scanDirectory(dirPath, index) {
/* $.ajax({
url: "file://"+dirPath,