changed: handle storage event for multiple windows

This commit is contained in:
quenousimporte 2023-05-30 12:56:23 +02:00
parent 9027a0eff3
commit 6bd85c79d8
2 changed files with 1 additions and 2 deletions

View File

@ -15,7 +15,7 @@
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Josefin+Sans" />
</head>
<body onload="init()" onkeydown="mainkeydownhandler()" onresize="resize()">
<body onload="init()" onkeydown="mainkeydownhandler()" onresize="resize()" onstorage="loadstorage()">
<script src="libs/showdown.min.js"></script>
<script src="libs/vis-network.min.js"></script>

View File

@ -1189,7 +1189,6 @@ function init()
if (issplit())
{
window.onstorage = loadstorage;
if (settings.defaultpreviewinsplit && name == "right")
{
togglepreview();