react-unity-webgl
Advanced tools
Comparing version
@@ -20,3 +20,3 @@ "use strict"; | ||
if (is_browser_environment_1.isBrowserEnvironment === false) { | ||
return; | ||
return undefined; | ||
} | ||
@@ -26,3 +26,3 @@ // If the script's source is null, we'll reset the status to idle. | ||
setStatus(unity_loader_status_1.UnityLoaderStatus.Idle); | ||
return; | ||
return undefined; | ||
} | ||
@@ -78,3 +78,3 @@ /** | ||
script.removeEventListener("error", setStateFromEvent); | ||
window.document.body.removeChild(script); | ||
script.remove(); | ||
} | ||
@@ -81,0 +81,0 @@ }; |
@@ -7,3 +7,3 @@ import { UnityArguments } from "./unity-arguments"; | ||
*/ | ||
type ConfigurableUnityArguments = Pick<UnityArguments, "dataUrl" | "frameworkUrl" | "codeUrl" | "workerUrl" | "streamingAssetsUrl" | "memoryUrl" | "symbolsUrl" | "companyName" | "productName" | "productVersion" | "webglContextAttributes" | "cacheControl">; | ||
type ConfigurableUnityArguments = Pick<UnityArguments, "dataUrl" | "frameworkUrl" | "codeUrl" | "workerUrl" | "streamingAssetsUrl" | "memoryUrl" | "symbolsUrl" | "companyName" | "productName" | "productVersion" | "webglContextAttributes" | "cacheControl" | "autoSyncPersistentDataPath">; | ||
/** | ||
@@ -10,0 +10,0 @@ * The Unity config is provided when instantiating a Unity context. This config |
{ | ||
"name": "react-unity-webgl", | ||
"version": "9.8.0", | ||
"version": "9.9.0", | ||
"description": "React Unity WebGL provides a modern solution for embedding Unity WebGL builds in your React Application while providing advanced APIs for two way communication and interaction between Unity and React.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
93847
0.04%1592
0.06%