Skip to content

Commit

Permalink
start server at reload
Browse files Browse the repository at this point in the history
  • Loading branch information
stsdc committed Aug 16, 2018
1 parent ae5e8ae commit e14a112
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
11 changes: 10 additions & 1 deletion client/src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import core from './core'

const wiredActions = hyperlog(app)(state, actions, view, document.body);

startServer();

document.onreadystatechange = function() {
if (document.readyState === "complete") {
wiredActions.restoreState();
Expand All @@ -21,4 +23,11 @@ core(wiredActions);
// This disables bouncing in iOS
// https://bugs.webkit.org/show_bug.cgi?id=182521
// https://stackoverflow.com/a/50856621/1589989
window.addEventListener("touchmove", (event) => event.preventDefault(), {passive: false} );
window.addEventListener("touchmove", (event) => event.preventDefault(), {passive: false} );


function startServer() {
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", "../../server/starter.php");
xmlhttp.send();
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tcs",
"version": "0.12.2",
"version": "0.12.3",
"description": "Turtle Control Software",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion server/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = (0, 12, 2)
version = (0, 12, 3)
version_info = '.'.join(str(c) for c in version)
2 changes: 1 addition & 1 deletion utils/make_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fpm --input-type dir \
--vendor "Kell ideas Ltd." \
--license "MIT" \
--url "https://github.com/TurtleRover/tcs" \
--version "0.12.2" \
--version "0.12.3" \
--iteration 7 \
--architecture all \
--deb-no-default-config-files \
Expand Down

0 comments on commit e14a112

Please sign in to comment.