@supraio/client-daemon-js 0.0.0-mznacl.255 → 0.0.0-mznacl.258

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supraio/client-daemon-js",
3
- "version": "0.0.0-mznacl.255",
3
+ "version": "0.0.0-mznacl.258",
4
4
  "description": "",
5
5
  "main": "sdk.js",
6
6
  "scripts": {
package/screen.html CHANGED
@@ -6,6 +6,6 @@
6
6
  </head>
7
7
  <body>
8
8
  <script type="text/javascript" src="nacl-decoder.js"></script>
9
- <script type="text/javascript" src="screen.js?v=0.0.0-mznacl.255"></script>
9
+ <script type="text/javascript" src="screen.js?v=0.0.0-mznacl.258"></script>
10
10
  </body>
11
11
  </html>
package/screen.js CHANGED
@@ -17338,7 +17338,7 @@
17338
17338
  }
17339
17339
 
17340
17340
  // screen/plain.ts
17341
- var SCREEN_JS_URL = "supra-client-screen.js?v=0.0.0-mznacl.255";
17341
+ var SCREEN_JS_URL = "supra-client-screen.js?v=0.0.0-mznacl.258";
17342
17342
  async function startPlainScreen(options) {
17343
17343
  const screenOptions = options != null ? options : parseQueryOptions();
17344
17344
  const fs = await initBrowserFS();
@@ -17350,11 +17350,11 @@
17350
17350
  await new Promise(() => void 0);
17351
17351
  }
17352
17352
  function createNaClDecoder() {
17353
- if (!("NaClDecoder" in window)) {
17354
- return void 0;
17353
+ if ("NaClDecoder" in window && window.NaClDecoder) {
17354
+ const naclDecoder = new NaClDecoder();
17355
+ return naclDecoder;
17355
17356
  }
17356
- const naclDecoder = new NaClDecoder();
17357
- return naclDecoder;
17357
+ return void 0;
17358
17358
  }
17359
17359
 
17360
17360
  // node_modules/h264decoder/dist/b64.js
@@ -17492,7 +17492,7 @@
17492
17492
  }
17493
17493
 
17494
17494
  // screen/wasm.ts
17495
- var SCREEN_WASM_URL = "supra-client-screen.wasm?v=0.0.0-mznacl.255";
17495
+ var SCREEN_WASM_URL = "supra-client-screen.wasm?v=0.0.0-mznacl.258";
17496
17496
  async function startWasmScreen(options) {
17497
17497
  const screenOptions = options != null ? options : parseQueryOptions();
17498
17498
  const h264Decoder = await createH264Decoder();