History button should be always shown
This commit is contained in:
parent
9757356520
commit
a14ab47fc0
@ -12,12 +12,14 @@
|
||||
<script src="pyodide/pyodide.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="toggleHistory">
|
||||
<button id="historyButton">Show History</button><br><br>
|
||||
</div>
|
||||
<div id="noEME">
|
||||
Widevine content hasn't detected in this page.<br>
|
||||
Open widevine-protected website and try again!
|
||||
</div>
|
||||
<div id="home" class="hidden">
|
||||
<button id="historyButton">Show History</button><br><br>
|
||||
<form id="wvForm">
|
||||
<label for="pssh">PSSH</label>
|
||||
<input type="text" id="pssh" disabled/>
|
||||
|
@ -1,16 +1,24 @@
|
||||
let psshs=chrome.extension.getBackgroundPage().psshs;
|
||||
function showHistory(){
|
||||
chrome.storage.local.get(null, ((data) => {
|
||||
let tree=jsonview.renderJSON(JSON.stringify(data), document.getElementById('histDisp'));
|
||||
jsonview.toggleNode(tree);
|
||||
}));
|
||||
document.getElementById('home').style.display='none';
|
||||
document.getElementById('noEME').style.display='none';
|
||||
document.getElementById('history').style.display='block';
|
||||
document.getElementById('toggleHistory').style.display='none';
|
||||
}
|
||||
|
||||
function backHistory(){
|
||||
document.getElementById('histDisp').innerHTML="";
|
||||
document.getElementById('history').style.display='none';
|
||||
document.getElementById('home').style.display='block';
|
||||
document.getElementById('toggleHistory').style.display='block';
|
||||
if(psshs.length != 0){
|
||||
document.getElementById('home').style.display='block';
|
||||
} else {
|
||||
document.getElementById('noEME').style.display='block';
|
||||
}
|
||||
}
|
||||
|
||||
function saveHistory(){
|
||||
|
Loading…
Reference in New Issue
Block a user