// Import any needed modules.
var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
function onLoad(activatedWhileWindowOpen) {
let xul = `
`;
WL.injectElements(xul, ["chrome://clipboard/locale/clipboard.dtd"]);
Services.scriptloader.loadSubScript("chrome://clipboard/content/overlay.js", this, "UTF-8");
}
function onUnload(deactivatedWhileWindowOpen) {
// Cleaning up the window UI is only needed when the
// add-on is being deactivated/removed while the window
// is still open. It can be skipped otherwise.
if (!deactivatedWhileWindowOpen) {
return
}
window.clipboardAttachment.unload();
}