add in titlePreface (#256)

This commit is contained in:
Andy McKay
2017-08-02 00:20:28 -07:00
committed by wbamberg
parent b488b5b905
commit 750870481e
2 changed files with 13 additions and 0 deletions

View File

@@ -18,6 +18,10 @@
<div class="panel-section-separator"></div>
<a href="#" id="window-preface-title">Preface title</a><br>
<div class="panel-section-separator"></div>
<a href="#" id="window-create-incognito">Create new incognito window</a><br>
<a href="#" id="window-create-normal">Create normal window</a><br>
<a href="#" id="window-create-panel">Create panel</a><br>

View File

@@ -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();
});