diff options
author | Devaev Maxim <[email protected]> | 2018-11-27 12:05:38 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-11-27 12:05:38 +0300 |
commit | 1897d72b5191ba88130f99feec302ea95b4ce6cd (patch) | |
tree | 39b235ae1182aca7fd667577868a65ba9dc9f6b8 /web/js/index/main.js | |
parent | b5ca09f310ade56ead145db4aee892d50cfd6386 (diff) |
refactoring
Diffstat (limited to 'web/js/index/main.js')
-rw-r--r-- | web/js/index/main.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/web/js/index/main.js b/web/js/index/main.js index 31c6905a..ba82ed2f 100644 --- a/web/js/index/main.js +++ b/web/js/index/main.js @@ -4,16 +4,15 @@ function main() { } function __setAppText() { - var url = window.location.href; $("app-text").innerHTML = ` <span class="code-comment"># On Linux using Chromium/Chrome via any terminal:<br> - $</span> \`which chromium 2>/dev/null || which chrome 2>/dev/null\` --app="${url}"<br> + $</span> \`which chromium 2>/dev/null || which chrome 2>/dev/null\` --app="${window.location.href}"<br> <br> <span class="code-comment"># On MacOS using Terminal application:<br> - $</span> /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --app="${url}"<br> + $</span> /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --app="${window.location.href}"<br> <br> <span class="code-comment"># On Windows via cmd.exe:<br> - C:\></span> start chrome --app="${url}" + C:\></span> start chrome --app="${window.location.href}" `; } |