Skip to content

Commit 26c1d7f

Browse files
committed
Remove the hard coded extension ID
1 parent 852543a commit 26c1d7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extension/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function dodownload (msg,tiddlywikilocations){
5050
console.log("id:" + chrome.runtime.id)
5151

5252
chrome.downloads.onDeterminingFilename.addListener(function SuggestFilename(item, suggest) {
53-
if (item.byExtensionId && item.byExtensionId === 'bjjekbdjkkbialgkidepcfhccflcieia') {
53+
if (item.byExtensionId && item.byExtensionId === chrome.runtime.id) {
5454
suggest({filename: tiddlywikilocations+$["/"]+ msg.path, conflictAction: 'overwrite'});
5555
chrome.downloads.onDeterminingFilename.removeListener(SuggestFilename);
5656
}

0 commit comments

Comments
 (0)