We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dcddcc4 + ab6cc39 commit 57f5618Copy full SHA for 57f5618
1 file changed
src/index.ts
@@ -125,8 +125,9 @@ async function renderView(options: {
125
let pane: PaneModule | undefined
126
if (jsonld['@view']) {
127
try {
128
- console.log(`[solid-shim] Loading @view: ${jsonld['@view']}`)
129
- const paneModule = await import(/* webpackIgnore: true */ jsonld['@view'])
+ const viewUrl = new URL(jsonld['@view'], window.location.href).href
+ console.log(`[solid-shim] Loading @view: ${viewUrl}`)
130
+ const paneModule = await import(/* webpackIgnore: true */ viewUrl)
131
pane = paneModule.default || paneModule
132
} catch (err) {
133
console.warn(`[solid-shim] Failed to load @view "${jsonld['@view']}":`, err)
0 commit comments