From a7f537879e87fd5b49eca07cc39e55e551446d4d Mon Sep 17 00:00:00 2001 From: yuri Date: Thu, 2 Apr 2015 15:20:05 +0300 Subject: [PATCH] change dev index.php --- frontend/index.php | 2 ++ frontend/main.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/index.php b/frontend/index.php index aa7facf34e..874f538fa6 100644 --- a/frontend/index.php +++ b/frontend/index.php @@ -29,7 +29,9 @@ if (!empty($_GET['entryPoint'])) { exit; } +$runScript = "app.start();"; $html = file_get_contents("frontend/main.html"); +$html = str_replace('{{runScript}}', $runScript , $html); echo $html; exit; diff --git a/frontend/main.html b/frontend/main.html index df01d67332..6f678142e8 100644 --- a/frontend/main.html +++ b/frontend/main.html @@ -77,7 +77,7 @@ useCache: false, url: '../api/v1', }, function (app) { - app.start(); + {{runScript}} }); });