New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-unity-webgl

Package Overview
Dependencies
Maintainers
1
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-unity-webgl - npm Package Compare versions

Comparing version 6.4.3 to 6.4.4

9

library/components/Unity.js

@@ -17,6 +17,2 @@ 'use strict';

var _Unity = require('./Unity.styles');
var _Unity2 = _interopRequireDefault(_Unity);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -69,3 +65,3 @@

this._unityLoaderService.append(this.props.loader).then(function () {
var unityInstance = UnityLoader.instantiate('unity', _this2.props.src, {
var unityInstance = UnityLoader.instantiate('__ruw', _this2.props.src, {
onProgress: _this2._onProgress.bind(_this2),

@@ -75,2 +71,3 @@ Module: _this2.props.module

module.exports.UnityInstance = unityInstance;
window._ui = unityInstance;
});

@@ -105,3 +102,3 @@ }

this.state.error
) : _react2.default.createElement('div', { style: _Unity2.default.unity, id: 'unity' })
) : _react2.default.createElement('div', { style: { width: '100%', height: '100%' }, id: '__ruw' })
);

@@ -108,0 +105,0 @@ }

@@ -38,5 +38,7 @@ 'use strict';

value: function unmount() {
if (this.unityLoaderScript !== null) {
this.documentHead.removeChild(this.unityLoaderScript);
}
/// unmounting is disabled due to bug
/// https://github.com/jeffreylanters/react-unity-webgl/issues/22
// if (this.unityLoaderScript !== null) {
// this.documentHead.removeChild(this.unityLoaderScript)
// }
}

@@ -43,0 +45,0 @@ }]);

{
"name": "react-unity-webgl",
"version": "6.4.3",
"version": "6.4.4",
"description": "A Unity WebGL component for your React application",

@@ -37,2 +37,2 @@ "main": "library/index.js",

}
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc