Skip to content

Commit

Permalink
Load js assets relative to base URI
Browse files Browse the repository at this point in the history
  • Loading branch information
unstubbable committed Oct 10, 2023
1 parent a2dc3dd commit e1c8248
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<link rel="modulepreload" href="https://ga.jspm.io/npm:[email protected]/client.js" />
<link rel="modulepreload" href="https://ga.jspm.io/npm:[email protected]/index.js" />

<script src="/js/integrator.js" type="module" defer></script>
<script src="./js/integrator.js" type="module" defer></script>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion src/integrator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const root = ReactDOM.createRoot(rootElement);
root.render(
<React.StrictMode>
<FeatureHubContextProvider value={{featureAppManager}}>
<FeatureAppLoader featureAppId="hello-world" src="/js/feature-app.js" />
<FeatureAppLoader featureAppId="hello-world" src="./feature-app.js" />
</FeatureHubContextProvider>
</React.StrictMode>,
);
Expand Down

0 comments on commit e1c8248

Please sign in to comment.