From 16ddb4d6ca5742aa36112f187e36a039a7357460 Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Wed, 7 Jan 2015 00:37:15 +0100 Subject: Refactored whole app handling into AppInfo class --- daemon/jskitmanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'daemon/jskitmanager.cpp') 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(); -- cgit v1.2.3