mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 09:32:28 +01:00
Close Print Preview mode properly with :tabdelete and friends.
Fixes issue #707.
This commit is contained in:
@@ -67,7 +67,9 @@ var Config = Module("config", ConfigBase, {
|
||||
},
|
||||
|
||||
removeTab: function removeTab(tab) {
|
||||
if (this.tabbrowser.mTabs.length > 1)
|
||||
if (window.gInPrintPreviewMode)
|
||||
window.PrintUtils.exitPrintPreview();
|
||||
else if (this.tabbrowser.mTabs.length > 1)
|
||||
this.tabbrowser.removeTab(tab);
|
||||
else {
|
||||
if (modules.buffer.uri.spec !== "about:blank" || window.getWebNavigation().sessionHistory.count > 0) {
|
||||
|
||||
Reference in New Issue
Block a user