getting assets url in script file

getting assets url in script file

alibukhari19951
Shopify Partner
1 0 0

hye i am trying to get url of assets url in my script i am getting this error .

DOMException: Failed to construct 'Worker': Script at 'https://cdn.shopify.com/s/files/1/0741/7554/5632/t/1/assets/WebAudioRecorderWav.min.js' cannot be accessed from origin 'https://

here is part of my script where i need the url 

recorder = new WebAudioRecorder(input, {
workerDir: "//cdn.shopify.com/s/files/1/0741/7554/5632/t/1/assets/", // must end with slash
encoding: encodingType,
numChannels:2, //2 is the default, mp3 encoding supports only 2
onEncoderLoading: function(recorder, encoding) {
// show "loading encoder..." display

},

Replies 0 (0)