Created
          April 9, 2010 08:30 
        
      - 
      
- 
        Save mait/360989 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | if (getBrowser().canGoBack) { | |
| gBrowser.goBack(); | |
| } else { | |
| gBrowser.removeCurrentTab(); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | if (getBrowser().canGoForward) { | |
| gBrowser.goForward(); | |
| } else { | |
| gBrowser.undoRemoveTab(); // It didn't work | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
How can I get undo close tab function?