mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
21 lines
459 B
JavaScript
21 lines
459 B
JavaScript
|
/* vim: set ts=2 et sw=2 tw=80: */
|
||
|
/* Any copyright is dedicated to the Public Domain.
|
||
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
let gScratchpadWindow; // Reference to the Scratchpad chrome window object
|
||
|
|
||
|
function cleanup()
|
||
|
{
|
||
|
if (gScratchpadWindow) {
|
||
|
gScratchpadWindow.close();
|
||
|
gScratchpadWindow = null;
|
||
|
}
|
||
|
while (gBrowser.tabs.length > 1) {
|
||
|
gBrowser.removeCurrentTab();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
registerCleanupFunction(cleanup);
|