Skip to content

Commit 400d4c1

Browse files
authored
Merge pull request #16 from duplicati/bugfix/post-token-to-opener
Resolve the parent messaging feature
2 parents 07b3016 + db98b65 commit 400d4c1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

templates/logged-in.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,11 @@
5353
};
5454

5555
setTimeout(recheck, 3000);
56-
57-
if (window.parent && !window.parent.closed)
58-
window.parent.postMessage('authid:{{authid}}', '*');
5956
});
57+
58+
if (window.opener && !window.opener.closed) {
59+
window.opener.postMessage('authid:{{authid}}', '*');
60+
}
6061
</script>
6162

6263
<div class="jumbotron">

0 commit comments

Comments
 (0)