Skip to content

Commit

Permalink
Fixed minor bug in main.applescript where if you started on Browser T…
Browse files Browse the repository at this point in the history
…abs, but didn't create any, and then went back and chose App Window, it would throw an error because the URL list was empty.
  • Loading branch information
David Marmor committed Jul 16, 2015
1 parent 676dff6 commit a5ec626
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions app/src/main.applescript
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a5ec626

Please sign in to comment.