mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-12 16:07:59 +00:00
fix of CSP violations like unsafe-eval
This commit is contained in:
parent
107754752a
commit
ec73147c75
@ -276,7 +276,7 @@
|
||||
<div class="modal-header">
|
||||
<h3></h3>
|
||||
<span id="closeModal" class="modal-close cancel">×</span>
|
||||
<span class="modal-back" onClick="history.back();"><</span>
|
||||
<span class="modal-back"><</span>
|
||||
<span class="mark-all-as-read"></span>
|
||||
</div>
|
||||
<div class="modal-content"></div>
|
||||
|
@ -370,7 +370,7 @@
|
||||
<div class="modal-header">
|
||||
<h3></h3>
|
||||
<span id="closeModal" class="modal-close cancel">×</span>
|
||||
<span class="modal-back" onClick="history.back();"><</span>
|
||||
<span class="modal-back"><</span>
|
||||
<span class="mark-all-as-read"></span>
|
||||
</div>
|
||||
<div class="modal-content"></div>
|
||||
|
@ -1343,6 +1343,8 @@ function initInterfaceCommon() {
|
||||
closeModal();
|
||||
});
|
||||
|
||||
$('.modal-back').on('click', function() {history.back();});
|
||||
|
||||
$('.prompt-close').on('click', function(e) {
|
||||
e.stopPropagation();
|
||||
closeModalHandler('.prompt-wrapper');
|
||||
@ -1460,6 +1462,9 @@ $(document).ready(function()
|
||||
initInterfaceLogin();
|
||||
} else if (page.indexOf("network.html") === 0) {
|
||||
initInterfaceNetwork();
|
||||
} else if (page.indexOf('options.html') === 0) {
|
||||
initInterfaceCommon();
|
||||
$.Options.initControls();
|
||||
} else if (page.indexOf("profile-edit.html") === 0) {
|
||||
initProfileEdit();
|
||||
}
|
||||
|
@ -777,7 +777,7 @@ function processSwarmProgressFinal(lastHaves, numPieces)
|
||||
}
|
||||
}
|
||||
}
|
||||
window.setTimeout("requestSwarmProgress();",2000);
|
||||
window.setTimeout(requestSwarmProgress, 2000);
|
||||
}
|
||||
|
||||
function followingChangedUser() {
|
||||
|
@ -20,14 +20,6 @@
|
||||
<script src="js/interface_login.js"></script>
|
||||
<script src="js/polyglot.min.js"></script>
|
||||
<script src="js/interface_localization.js"></script>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
initInterfaceCommon();
|
||||
$.Options.initControls();
|
||||
})
|
||||
changeStyle();
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
Loading…
Reference in New Issue
Block a user