From aafb8797880ea8eca6a8349a7bc39010cb0d80a9 Mon Sep 17 00:00:00 2001 From: Robert Dargavel Smith Date: Mon, 25 Dec 2023 09:31:57 +0000 Subject: [PATCH] fix ci/cd --- src/components/Playlist.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/components/Playlist.js b/src/components/Playlist.js index 839f148..cc14f1a 100644 --- a/src/components/Playlist.js +++ b/src/components/Playlist.js @@ -1,10 +1,18 @@ //import 'react-native-get-random-values'; import { v4 as uuidv4 } from 'uuid'; -import("expo-standard-web-crypto").then(({ polyfillWebCrypto }) => { - polyfillWebCrypto(); -}).catch(error => {}); import { IFrame } from './Platform'; +function loadWebCrypto() { + import("expo-standard-web-crypto") + .then(({ polyfillWebCrypto }) => { + polyfillWebCrypto(); + }) + .catch(error => { + }); +} + +loadWebCrypto(); + export default function Playlist({ track_ids = [], waypoints = [], playlist_id = '' }) { const height = 80 + 50 * track_ids.length;