Skip to content

Commit 8902dde

Browse files
committed
Show v7 canvas title as document.title
1 parent 867a764 commit 8902dde

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/JSRootPainter.v7.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3239,6 +3239,9 @@
32393239

32403240
var padattr = snap.fPadAttributes || { fCw: 0, fCh: 0 }; // for the moment no canvas attributes are provided
32413241

3242+
if (this.iscan && snap.fTitle && document)
3243+
document.title = snap.fTitle;
3244+
32423245
if (this.snapid === undefined) {
32433246
// first time getting snap, create all gui elements first
32443247

0 commit comments

Comments
 (0)