Răsfoiți Sursa

Fix app.views.Content#isExternalUrl

Thibaut 12 ani în urmă
părinte
comite
e96b173ce4
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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:']