Browse Source

Fix app.views.Content#isExternalUrl

Thibaut 12 years ago
parent
commit
e96b173ce4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      assets/javascripts/views/content/content.coffee

+ 1 - 1
assets/javascripts/views/content/content.coffee

@@ -154,4 +154,4 @@ class app.views.Content extends app.View
     try $.id decodeURIComponent(hash) catch
 
   isExternalUrl: (url) ->
-    url?[0..3] is 'http'
+    url?[0..4] in ['http:', 'https:']