Permalink
Browse files

Strategic Scala Style: Conciseness & Names

  • Loading branch information...
1 parent be4d2d4 commit d37784a1302eafd80a6a07ab573092bb16c25538 @lihaoyi committed Feb 21, 2016
View
@@ -125,7 +125,7 @@ def googleAnalytics: Frag = script(raw(
""".stripMargin
))
def forceHttps: Frag = script(raw(
-"""if (window.location.protocol != "https:")
+"""if (window.location.protocol == "http:")
| window.location.href = "https:" + window.location.href.substring(window.location.protocol.length);
""".stripMargin
))
Oops, something went wrong.

0 comments on commit d37784a

Please sign in to comment.