RetroZilla/xpfe/global/resources/content/extensions/sessionmanager/zzz_closewindow_hack.xul

20 lines
409 B
Plaintext
Raw Normal View History

2016-04-15 05:02:37 +02:00
<?xml version="1.0"?>
<!DOCTYPE overlay>
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript"><![CDATA[
if (typeof closeWindow == "function" && /canQuitApplication/.test(closeWindow))
{
window.closeWindow = function(aClose) {
if (aClose)
{
window.close();
}
return true;
};
}
]]></script>
</overlay>