mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 12:57:58 +01:00
minor refactoring of vimperator.beep
This commit is contained in:
@@ -198,12 +198,8 @@ const vimperator = (function() //{{{
|
||||
|
||||
beep: function()
|
||||
{
|
||||
if (!vimperator.options["visualbell"])
|
||||
if (vimperator.options["visualbell"])
|
||||
{
|
||||
sound_service.beep();
|
||||
return;
|
||||
}
|
||||
|
||||
// flash the visual bell
|
||||
var popup = document.getElementById("vimperator-visualbell");
|
||||
var win = getBrowser().mPanelContainer;
|
||||
@@ -211,13 +207,13 @@ const vimperator = (function() //{{{
|
||||
|
||||
popup.height = box.height;
|
||||
popup.width = box.width;
|
||||
//popup.style.backgroundColor = "black";
|
||||
////popup.showPopup(win, box.screenX, box.screenY, "popup");
|
||||
//popup.showPopup(win, -1, -1, "popup", "topleft", "topleft");
|
||||
|
||||
popup.openPopup(win, "overlap", 0, 0, false, false)
|
||||
|
||||
setTimeout(function() { popup.hidePopup(); }, 50);
|
||||
}
|
||||
else
|
||||
{
|
||||
sound_service.beep();
|
||||
}
|
||||
},
|
||||
|
||||
copyToClipboard: function(str)
|
||||
|
||||
Reference in New Issue
Block a user