Skip to content

Commit

Permalink
change new to open new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Aug 28, 2023
1 parent c0892e7 commit 6c2af68
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,9 @@ class App extends React.Component {
this.handleStop();
}
handleNew = async() => {
this.backupManager.clearBackup();
window.location.href = window.location.origin; // causes a reload
//this.backupManager.clearBackup();
//window.location.href = window.location.origin; // causes a reload
window.open('/?newGist=1', '_blank');
}
handleRun = async () => {
this.backupManager.setBackup(JSON.stringify({
Expand Down

0 comments on commit 6c2af68

Please sign in to comment.