Commit 3d2ae2a3 authored by Nick Poulden's avatar Nick Poulden
Browse files

Forward Touch users on a phone to static examples

parent cb59129c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -273,7 +273,8 @@ class JsDuckRunner

    @options += [
      "--welcome", "template-min/touch-welcome.html",
      "--body-html", '<script type="text/javascript">Docs.exampleBaseUrl = "' + relative_touch_path + 'examples/";</script>'
      "--body-html",
        '<script type="text/javascript">Docs.exampleBaseUrl = "' + relative_touch_path + 'examples/";if (Ext.is.Phone) { window.location = "' + relative_touch_path + 'examples/"; }</script>'
    ]
  end