Thimblr 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/thimblr.rb +6 -1
- metadata +2 -2
data/lib/thimblr.rb
CHANGED
@@ -63,7 +63,12 @@ class Thimblr::Application < Sinatra::Base
|
|
63
63
|
enable :sessions
|
64
64
|
set :bind, '127.0.0.1'
|
65
65
|
|
66
|
-
Launchy
|
66
|
+
# Dirty hack cos Windows support in Launchy appears to be broken
|
67
|
+
if Platform == 'win'
|
68
|
+
`start http://localhost:#{port}`
|
69
|
+
else
|
70
|
+
Launchy.open("http://localhost:#{port}")
|
71
|
+
end
|
67
72
|
end
|
68
73
|
|
69
74
|
helpers do
|