Make notification compatible with latest noscript

This commit is contained in:
shortcutme 2019-01-23 02:15:23 +01:00
parent 271cb66c69
commit fb925745ba
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -11,9 +11,11 @@
</head>
<body style="{body_style}" class="{themeclass}">
<noscript>
<div class="unsupported"><h3>ZeroNet requires JavaScript support.</h3>If you use NoScript: Click on toolbar icon and choose the "Temporary allow all this page" option.</div>
</noscript>
<div class="unsupported" id="unsupported">
<script nonce="{script_nonce}">document.getElementById('unsupported').style.display = "none"</script>
<h3>ZeroNet requires JavaScript support.</h3>If you use NoScript/Tor browser: Click on toolbar icon with the notification and choose "Temp. TRUSTED" for 127.0.0.1.
</div>
<script nonce="{script_nonce}">
// If we are inside iframe escape from it
if (window.self !== window.top) {