3dviewer-sdk 1.0.9 → 1.0.10
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/dist/index.d.ts +4 -520
- package/dist/index.js +1 -1228
- package/dist/modules/files.module.js +9 -0
- package/package.json +1 -1
|
@@ -181,6 +181,15 @@ export class FilesModule {
|
|
|
181
181
|
}
|
|
182
182
|
// Viewer host used to open iframe after conversion completes.
|
|
183
183
|
resolveViewerOrigin() {
|
|
184
|
+
const configuredBaseUrl = this.config.baseUrl || this.viewer.getOptions().baseUrl;
|
|
185
|
+
if (configuredBaseUrl) {
|
|
186
|
+
try {
|
|
187
|
+
return this.normalizeBaseUrl(new URL(configuredBaseUrl, window.location.href).origin);
|
|
188
|
+
}
|
|
189
|
+
catch {
|
|
190
|
+
// Fallback to viewer URL below.
|
|
191
|
+
}
|
|
192
|
+
}
|
|
184
193
|
const viewerUrl = this.viewer.getOptions().url;
|
|
185
194
|
if (viewerUrl) {
|
|
186
195
|
try {
|