fixing tablet apps/referenceerror

This commit is contained in:
Wayne Chen 2018-12-12 12:43:01 -08:00
parent 941df8bc35
commit 941050d42c
2 changed files with 6 additions and 2 deletions

View file

@ -26,6 +26,8 @@ FocusScope {
height: parent.height
signal sendToScript(var message);
signal canceled();
property bool isHMD: false
property bool gotoPreviousApp: false;
@ -50,7 +52,8 @@ FocusScope {
}
function tryDestroy() {
canceled()
canceled();
root.destroy();
}
MouseArea {

View file

@ -238,7 +238,8 @@ void Web3DOverlay::setupQmlSurface(bool isTablet, bool isLoginDialog) {
if (isTablet || isLoginDialog) {
_webSurface->getSurfaceContext()->setContextProperty("Account", AccountServicesScriptingInterface::getInstance()); // DEPRECATED - TO BE REMOVED
} else if (isTablet) {
}
if (isTablet) {
auto tabletScriptingInterface = DependencyManager::get<TabletScriptingInterface>();
auto flags = tabletScriptingInterface->getFlags();