Fix memory leak

master
Les De Ridder 7 years ago
parent e669726ed3
commit 152f54f23b
  1. 2
      background.js
  2. 1
      options.html
  3. 2
      worker.js

@ -65,6 +65,8 @@ chrome.pageAction.onClicked.addListener(function(tab) {
if(config.replacebookmark) {
replaceBookmark(url, newUrl);
}
worker.terminate();
};
worker.postMessage(JSON.stringify({pomfclone: config.url, url: betterUrl, filename: filename}));
});

@ -42,6 +42,7 @@
<!--
TODO:
* Disable blacklist (checkbox)
* Add progress/status messages
* Add imageboard thread archival support
* Add booru support
* Add imgur album support

@ -21,8 +21,6 @@ function uploadBuffer(pomfclone, buffer, filename) {
var request = new XMLHttpRequest();
request.open('POST', pomfclone + '/upload.php', true);
request.onload = function(e) {
console.log(request.response);
postMessage(request.response);
};
request.send(formData);

Loading…
Cancel
Save