Skip to content

Commit

Permalink
Merge pull request #976 from navikt/fiks-gh-pages
Browse files Browse the repository at this point in the history
Fiks feil hvor appen ikke ville laste pga. at vi ikke fant internarbeidsflatedecorator-assets
  • Loading branch information
Mathiamu authored May 13, 2024
2 parents 697a6e5 + f8046be commit 6e7ca0a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<link rel="icon" href="/favicon.ico" sizes="any"> <!-- localhost -->
<link rel="icon" href="/favicon.svg" type="image/svg+xml"> <!-- AzureAd kommer fra internarbeidsflatedecorator -->
<link rel="icon" href="/veilarbportefoljeflatefs/favicon.ico" type="image/x-icon" /> <!-- openAm -->
<script src="/internarbeidsflatedecorator/v2.1/static/js/head.v2.min.js"></script>
<link rel="stylesheet" href="/internarbeidsflatedecorator/v2.1/static/css/main.css" />
<script src="%PUBLIC_URL%/internarbeidsflatedecorator/v2.1/static/js/head.v2.min.js"></script>
<link rel="stylesheet" href="%PUBLIC_URL%/internarbeidsflatedecorator/v2.1/static/css/main.css" />
<link
rel="preload"
href="https://cdn.nav.no/aksel/fonts/SourceSans3-normal.woff2"
Expand Down
11 changes: 11 additions & 0 deletions src/mocks/api/modiacontextholder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,17 @@ export const modiacontextholderHandlers: RequestHandler[] = [
});
})
),
http.get('https://app.adeo.no/modiacontextholder/api/decorator', async () => {
await delay(DEFAULT_DELAY_MILLISECONDS);

return HttpResponse.json({
enheter: innloggetVeileder.enheter,
etternavn: innloggetVeileder.etternavn,
fornavn: innloggetVeileder.fornavn,
ident: innloggetVeileder.ident,
navn: innloggetVeileder.navn
});
}),
http.post(
'/modiacontextholder/api/context',
withAuth(async () => {
Expand Down

0 comments on commit 6e7ca0a

Please sign in to comment.