Updated mimetype for cookies download.
This commit is contained in:
parent
b86209e89f
commit
efabe7a7bb
@ -7,7 +7,7 @@ function exportCookies() {
|
||||
domain = ""; flag = ""; path = "";
|
||||
secure = ""; expiration = ""; name = ""
|
||||
value = ""; tab="\t";
|
||||
return_block= "# Netscape HTTP Cookie File\n# This file was generated by the export-cookies Google Chrome extension.\n";
|
||||
return_block= "# Netscape HTTP Cookie File\n# This file was generated by the export-cookies Chrome extension.\n";
|
||||
for (var i = 0; i < cookies.length; i++) {
|
||||
domain=cookies[i].domain;
|
||||
cookies[i].sameSite == "strict" ? flag="FALSE":flag="TRUE";
|
||||
@ -23,7 +23,7 @@ function exportCookies() {
|
||||
return_block = return_block + line;
|
||||
}
|
||||
chrome.storage.local.get(null, function() {
|
||||
url = 'data:application/json;base64,' + btoa(return_block);
|
||||
url = 'data:text;base64,' + btoa(return_block);
|
||||
chrome.downloads.download({
|
||||
url: url,
|
||||
filename: 'cookies.txt'
|
||||
@ -33,4 +33,3 @@ function exportCookies() {
|
||||
});
|
||||
};
|
||||
exportCookies();
|
||||
// window.close();
|
||||
|
Loading…
Reference in New Issue
Block a user