Skip to content

Commit 6c2af68

Browse files
committed
change new to open new tab
1 parent c0892e7 commit 6c2af68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/App.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,9 @@ class App extends React.Component {
221221
this.handleStop();
222222
}
223223
handleNew = async() => {
224-
this.backupManager.clearBackup();
225-
window.location.href = window.location.origin; // causes a reload
224+
//this.backupManager.clearBackup();
225+
//window.location.href = window.location.origin; // causes a reload
226+
window.open('/?newGist=1', '_blank');
226227
}
227228
handleRun = async () => {
228229
this.backupManager.setBackup(JSON.stringify({

0 commit comments

Comments
 (0)