Fix memory leak
This commit is contained in:
parent
e669726ed3
commit
152f54f23b
|
@ -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…
Reference in New Issue