From 750870481e1b5033cfe9ba335bf4031e1a52364b Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Wed, 2 Aug 2017 00:20:28 -0700 Subject: [PATCH] add in titlePreface (#256) --- window-manipulator/window.html | 4 ++++ window-manipulator/window.js | 9 +++++++++ 2 files changed, 13 insertions(+) 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(); });