diff --git a/vif.js b/vif.js index 2939a57..d7a9c70 100644 --- a/vif.js +++ b/vif.js @@ -98,6 +98,11 @@ JVIV = function() { switch(event.keyCode) { case 81: // q loop.stop(); + /* The following line enables window.close() in Chrome and < FF2.0 + FF above that require explicit user action to enable: + about:config -> dom.allow_scripts_to_close_windows=true + */ + window.open('', '_self', ''); // enables window.close() in Chrome and FF1.5 to enable FF1.5 window.close(); break; case 37: // left