summaryrefslogtreecommitdiff
path: root/ext/mixed
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2019-11-28 18:24:24 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2019-11-28 18:24:24 +0200
commit1dd88763de8e4ad2728d87dd33defb9cf1a71a42 (patch)
treee5c94c1324af9386f9b6c70cbb73fcbe4f0894fa /ext/mixed
parent1f2734863f2f9213fd6c2db196d2b20969a7ee99 (diff)
clear Display history on new lookup
Diffstat (limited to 'ext/mixed')
-rw-r--r--ext/mixed/js/display.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index bd4dc0d0..d83efc13 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -351,6 +351,11 @@ class Display {
this.setEventListenersActive(false);
+ if (context.clearHistoryOnce) {
+ delete context.clearHistoryOnce;
+ this.poppedContextHistory = [];
+ }
+
if (context.focus !== false) {
window.focus();
}
@@ -406,6 +411,11 @@ class Display {
this.setEventListenersActive(false);
+ if (context.clearHistoryOnce) {
+ delete context.clearHistoryOnce;
+ this.poppedContextHistory = [];
+ }
+
if (context.focus !== false) {
window.focus();
}