Showing the changes to interface/src/scripting/PlatformInfoScriptingInterface.cpp (1 of 8 files). Show all
Unified · Split
| @@ -7,7 +7,7 @@ · 6 unmodified lines | |||
| 7 | // | 7 | // |
| 8 | #include "PlatformInfoScriptingInterface.h" | 8 | #include "PlatformInfoScriptingInterface.h" |
| 9 | #include "Application.h" | 9 | #include "Application.h" |
| 10 | 10 | #include <shared/GlobalAppProperties.h> | |
| 11 | #include <thread> | 11 | #include <thread> |
| 12 | 12 | ||
| 13 | #ifdef Q_OS_WIN | 13 | #ifdef Q_OS_WIN |
| @@ -138,6 +138,14 @@ bool PlatformInfoScriptingInterface::has3DHTML() { · 124 unmodified lines | |||
| 138 | #if defined(Q_OS_ANDROID) | 138 | #if defined(Q_OS_ANDROID) |
| 139 | return false; | 139 | return false; |
| 140 | #else | 140 | #else |
| 141 | return true; | 141 | return !qApp->property(hifi::properties::STANDALONE).toBool(); |
| 142 | #endif | ||
| 143 | } | ||
| 144 | |||
| 145 | bool PlatformInfoScriptingInterface::isStandalone() { | ||
| 146 | #if defined(Q_OS_ANDROID) | ||
| 147 | return false; | ||
| 148 | #else | ||
| 149 | return qApp->property(hifi::properties::STANDALONE).toBool(); | ||
| 142 | #endif | 150 | #endif |
| 143 | } | 151 | } |