@react-three/fiber 8.14.0 → 8.14.1
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/CHANGELOG.md
CHANGED
|
@@ -410,8 +410,8 @@ function polyfills() {
|
|
|
410
410
|
let uri = asset.localUri || asset.uri;
|
|
411
411
|
|
|
412
412
|
// Make FS paths web-safe
|
|
413
|
-
if (
|
|
414
|
-
const data = await fs__namespace.readAsStringAsync(
|
|
413
|
+
if (uri.startsWith('file://')) {
|
|
414
|
+
const data = await fs__namespace.readAsStringAsync(uri, {
|
|
415
415
|
encoding: fs__namespace.EncodingType.Base64
|
|
416
416
|
});
|
|
417
417
|
uri = `data:application/octet-stream;base64,${data}`;
|
|
@@ -410,8 +410,8 @@ function polyfills() {
|
|
|
410
410
|
let uri = asset.localUri || asset.uri;
|
|
411
411
|
|
|
412
412
|
// Make FS paths web-safe
|
|
413
|
-
if (
|
|
414
|
-
const data = await fs__namespace.readAsStringAsync(
|
|
413
|
+
if (uri.startsWith('file://')) {
|
|
414
|
+
const data = await fs__namespace.readAsStringAsync(uri, {
|
|
415
415
|
encoding: fs__namespace.EncodingType.Base64
|
|
416
416
|
});
|
|
417
417
|
uri = `data:application/octet-stream;base64,${data}`;
|
|
@@ -385,8 +385,8 @@ function polyfills() {
|
|
|
385
385
|
let uri = asset.localUri || asset.uri;
|
|
386
386
|
|
|
387
387
|
// Make FS paths web-safe
|
|
388
|
-
if (
|
|
389
|
-
const data = await fs.readAsStringAsync(
|
|
388
|
+
if (uri.startsWith('file://')) {
|
|
389
|
+
const data = await fs.readAsStringAsync(uri, {
|
|
390
390
|
encoding: fs.EncodingType.Base64
|
|
391
391
|
});
|
|
392
392
|
uri = `data:application/octet-stream;base64,${data}`;
|