projects
/
brisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e05f4fd
)
test avoid reuse page (with browsers button or tab duplication)
author
Matteo Nastasi
<nastasi@alternativeoutput.it>
Sun, 19 Apr 2020 09:52:56 +0000
(11:52 +0200)
committer
Matteo Nastasi
<nastasi@alternativeoutput.it>
Sun, 19 Apr 2020 09:52:56 +0000
(11:52 +0200)
web/index.php
patch
|
blob
|
history
diff --git
a/web/index.php
b/web/index.php
index
10ff96c
..
9e3efe5
100644
(file)
--- a/
web/index.php
+++ b/
web/index.php
@@
-1254,7
+1254,15
@@
cookie_law(null);
// var nonunload = false;
var spo_slide, sup_slide;
+ var prevent_reuse = "";
window.onload = function() {
+
+ if (prevent_reuse == "") {
+ prevent_reuse = "first load";
+ }
+ else {
+ location.reload();
+ }
g_brow = get_browser_agent();
g_prefs = new client_prefs(null);