From a5ec626160883b2fb5f7fb2f29b7ec44bee353e5 Mon Sep 17 00:00:00 2001 From: David Marmor Date: Wed, 15 Jul 2015 19:28:39 -0700 Subject: [PATCH] Fixed minor bug in main.applescript where if you started on Browser Tabs, but didn't create any, and then went back and chose App Window, it would throw an error because the URL list was empty. --- app/src/main.applescript | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/src/main.applescript b/app/src/main.applescript index effaa74..8caeb1a 100644 --- a/app/src/main.applescript +++ b/app/src/main.applescript @@ -98,7 +98,7 @@ end tablist -- INITIALIZE IMPORTANT VARIABLES set ssbBase to "My Epichrome App" -set ssbURLs to 0 +set ssbURLs to {} repeat -- FIRST STEP: SELECT APPLICATION NAME & LOCATION @@ -240,12 +240,8 @@ BROWSER TABS - The app will display a full browser window with the given tabs." set curStep to curStep + 1 -- initialize URL list - if ssbURLs is 0 then - if ssbStyle is "App Window" then - set ssbURLs to {ssbDefaultURL} - else - set ssbURLs to {} - end if + if (ssbURLs is {}) and (ssbStyle is "App Window") then + set ssbURLs to {ssbDefaultURL} end if repeat