fix(mobile): component viewer in mobile web

This commit is contained in:
Mo
2022-07-07 13:08:52 -05:00
parent f484a2a920
commit d9014615f0
6 changed files with 8 additions and 6 deletions

View File

@@ -285,7 +285,7 @@ export class SNComponentManager extends AbstractService<ComponentManagerEvent, E
if (!isWeb) {
throw Error('Mobile must override urlForComponent to handle native paths')
}
return `${window.location.origin}/components/assets/${component.identifier}/${nativeFeature.index_path}`
return `components/assets/${component.identifier}/${nativeFeature.index_path}`
}
let url = component.hosted_url || component.legacy_url