Remove "Do you want to be redirected instantly?" text in "Before navigate unsafe" case

This commit is contained in:
Sainan 2020-04-27 18:43:12 +02:00
parent 111b377eaf
commit 4df50ffc9c
2 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,7 @@
<p data-message="beforeNavigateDestination"></p>
<div id="unsafe" class="uk-alert uk-alert-danger uk-hidden"><p data-message="beforeNavigateUnsafe"></p></div>
<div id="timer" class="uk-alert uk-alert-primary uk-hidden"><p></p></div>
<p><span data-message="beforeNavigateOptions"></span> <a href="options.html#option-navigation-delay" target="_blank" data-message="optionsLink"></a></p>
<p id="options-link"><span data-message="beforeNavigateOptions"></span> <a href="options.html#option-navigation-delay" target="_blank" data-message="optionsLink"></a></p>
</div>
<script src="i18n.js"></script>
<script src="before-navigate.js"></script>

View File

@ -24,6 +24,7 @@ if(args.has("target"))
if(args.has("safe_in"))
{
document.getElementById("unsafe").classList.remove("uk-hidden")
document.getElementById("options-link").classList.add("uk-hidden")
timer("beforeNavigateUnsafeTimer",args.get("safe_in"),false,when_safe)
}
else