mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-24 02:27:19 +00:00
Set title of external window
This commit is contained in:
parent
8708f817fa
commit
ec567f67d3
@ -37,6 +37,7 @@ exports.startup = function() {
|
|||||||
// Initialise the document
|
// Initialise the document
|
||||||
srcDocument.write("<html><head></head><body class='tc-body'></body></html>");
|
srcDocument.write("<html><head></head><body class='tc-body'></body></html>");
|
||||||
srcDocument.close();
|
srcDocument.close();
|
||||||
|
srcDocument.title = title;
|
||||||
srcWindow.addEventListener("beforeunload",function(event) {
|
srcWindow.addEventListener("beforeunload",function(event) {
|
||||||
$tw.wiki.removeEventListener("change",refreshHandler);
|
$tw.wiki.removeEventListener("change",refreshHandler);
|
||||||
},false);
|
},false);
|
||||||
|
Loading…
Reference in New Issue
Block a user