Browse Source

fix of CSP violations like unsafe-eval

master
Simon Grim 9 years ago
parent
commit
ec73147c75
  1. 2
      following.html
  2. 2
      home.html
  3. 5
      js/interface_common.js
  4. 2
      js/twister_following.js
  5. 8
      options.html

2
following.html

@ -276,7 +276,7 @@ @@ -276,7 +276,7 @@
<div class="modal-header">
<h3></h3>
<span id="closeModal" class="modal-close cancel">&times;</span>
<span class="modal-back" onClick="history.back();">&lt;</span>
<span class="modal-back">&lt;</span>
<span class="mark-all-as-read"></span>
</div>
<div class="modal-content"></div>

2
home.html

@ -370,7 +370,7 @@ @@ -370,7 +370,7 @@
<div class="modal-header">
<h3></h3>
<span id="closeModal" class="modal-close cancel">&times;</span>
<span class="modal-back" onClick="history.back();">&lt;</span>
<span class="modal-back">&lt;</span>
<span class="mark-all-as-read"></span>
</div>
<div class="modal-content"></div>

5
js/interface_common.js

@ -1343,6 +1343,8 @@ function initInterfaceCommon() { @@ -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() @@ -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();
}

2
js/twister_following.js

@ -777,7 +777,7 @@ function processSwarmProgressFinal(lastHaves, numPieces) @@ -777,7 +777,7 @@ function processSwarmProgressFinal(lastHaves, numPieces)
}
}
}
window.setTimeout("requestSwarmProgress();",2000);
window.setTimeout(requestSwarmProgress, 2000);
}
function followingChangedUser() {

8
options.html

@ -20,14 +20,6 @@ @@ -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…
Cancel
Save