summaryrefslogtreecommitdiff
path: root/daemon/jskitmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/jskitmanager.cpp')
-rw-r--r--daemon/jskitmanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/jskitmanager.cpp b/daemon/jskitmanager.cpp
index f6a3f24..a5be709 100644
--- a/daemon/jskitmanager.cpp
+++ b/daemon/jskitmanager.cpp
@@ -79,7 +79,7 @@ void JSKitManager::handleAppStopped(const QUuid &uuid)
}
stopJsApp();
- _curApp.setUuid(QUuid()); // Clear the uuid to force invalid app
+ _curApp.setInvalid();
}
}
@@ -162,8 +162,8 @@ void JSKitManager::startJsApp()
// Polyfills...
loadJsFile("/usr/share/pebble/js/typedarray.js");
- // Now load the actual script
- loadJsFile(_curApp.path() + "/pebble-js-app.js");
+ // Now the actual script
+ _engine->evaluate(_curApp.getJSApp());
// Setup the message callback
QUuid uuid = _curApp.uuid();