Skip to content

Commit

Permalink
Refactor: Remove unnecessary code from history page
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxRefire committed Oct 13, 2024
1 parent ff8056d commit 456b17a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion popup/history.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<meta charset="UTF-8">
<title>Widevine L3 Guessor - History</title>
<link rel="stylesheet" href="style.css">
<script src="/libs/pyodide/pyodide.js"></script>
</head>
<body>
<div id="history">
Expand Down
5 changes: 1 addition & 4 deletions popup/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ function showHistory(){
}

function saveHistory(){
chrome.storage.local.get(null, ((data) => {
chrome.storage.local.get(null, (data => {
let blob = new Blob([JSON.stringify(data, null, "\t")], {type: "text/plain"});
let blobLink = URL.createObjectURL(blob);
let a = document.createElement('a');
a.download = 'wvgHistory.json';
a.href = blobLink
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
URL.revokeObjectURL(blobLink);
}));
}

Expand Down

0 comments on commit 456b17a

Please sign in to comment.