RetroZilla/xpfe/global/resources/content/extensions/sessionmanager/zzz_closewindow_hack.xul
2016-04-14 23:02:37 -04:00

20 lines
409 B
XML

<?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>