Skip to content

Commit bc0be7a

Browse files
authored
custom notebook title (#2846)
1 parent 670b7bc commit bc0be7a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docker/jupyter/js/custom.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,12 @@ require(['notebook/js/codecell', "codemirror/lib/codemirror"], function(codecell
3232
}
3333
});
3434
});
35+
});
36+
37+
window.document.title = "SQLFlow - " + window.document.title;
38+
39+
document.__defineSetter__('title', function(val) {
40+
// document.title = val + " ... Jupyter Notebook"; // WARNING Would be recursive!
41+
console.log("Setting window's title to:", val);
42+
document.querySelector('title').childNodes[0].nodeValue = "SQLFlow - " + val;
3543
});

0 commit comments

Comments
 (0)