diff --git a/window-manipulator/window.html b/window-manipulator/window.html index c1ba472..f1ebd95 100644 --- a/window-manipulator/window.html +++ b/window-manipulator/window.html @@ -18,6 +18,10 @@
+ Preface title
+ +
+ Create new incognito window
Create normal window
Create panel
diff --git a/window-manipulator/window.js b/window-manipulator/window.js index a659b48..b7e9396 100644 --- a/window-manipulator/window.js +++ b/window-manipulator/window.js @@ -92,5 +92,14 @@ document.addEventListener("click", (e) => { }); } + else if (e.target.id === "window-preface-title") { + getCurrentWindow().then((currentWindow) => { + let updateInfo = { + titlePreface: "Preface | " + } + browser.windows.update(currentWindow.id, updateInfo); + }); + } + e.preventDefault(); });