From 6c2af68353c95f847e899081fb959e9bc046b8f0 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Mon, 28 Aug 2023 00:06:28 -0700 Subject: [PATCH] change new to open new tab --- src/components/App.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/App.js b/src/components/App.js index f06851e..6c753e4 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -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({