Skip to content

Commit

Permalink
New reload mechanism. Closes #35.
Browse files Browse the repository at this point in the history
  • Loading branch information
gggritso committed Feb 12, 2017
1 parent ae679d3 commit 1b1663c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions src/vimmy.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,9 @@
announceHintRotationToTab( event.target );
} else if ( event.name == 'closeTab' ) {
closeTab();
} else if ( event.name == 'reloadTab' ) {
reloadTab();
}
});

function reloadTab() {
var tab = safari.application.activeBrowserWindow.activeTab;
tab.url = tab.url;
}

function closeTab() {
var tab = safari.application.activeBrowserWindow.activeTab;
tab.close();
Expand Down
2 changes: 1 addition & 1 deletion src/vimmy2.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@
}

function reloadTab(){
safari.self.tab.dispatchMessage( 'reloadTab' );
window.location.reload();
}

// // // // //
Expand Down

0 comments on commit 1b1663c

Please sign in to comment.