I'm embedding a link to a dropbox folder using the code below. It works perfectly well in Firefox, but in Safari it comes up with an error:

There's no further javascript errors. Any ideas? (The same error shows up using a simple <a> link as well. Running Safari 13 on a Mac...
dbx.sharingCreateSharedLink({
path: '/Gord_Test_VR/ARC_RES/{{$photoDir}}'
}).then(function(data) {
console.log(data);
var options = {
link: data.url,
file: {
zoom: "best" // or "fit"
},
folder: {
view: "list",
headerSize: 'small'
},
}
console.log(Dropbox.isBrowserSupported());
Dropbox.embed(options, dDropbox);
}).catch(function(error) {
console.error(error);
});