Skip to content

Commit

Permalink
Rydde litt
Browse files Browse the repository at this point in the history
  • Loading branch information
holymaloney committed Aug 15, 2023
1 parent 84b9c7e commit 9203202
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/deploy-intern.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,4 @@ jobs:
cdn-team-name: dab
source: ./build/
destination: /${{ inputs.bucket }}/
cache-invalidate: true
- name: Sjekk rate limit hvis feil
if: failure()
run: |
curl -H "Authorization: Bearer $NODE_AUTH_TOKEN" 'https://api.github.com/rate_limit'
env:
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
cache-invalidation: true
12 changes: 1 addition & 11 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import React from 'react';
import * as ReactDOM from 'react-dom';

import { initAmplitude } from './amplitude/amplitude';
import { ER_INTERN_FLATE, USE_HASH_ROUTER, USE_MOCK } from './constant';
import { ER_INTERN_FLATE, USE_MOCK } from './constant';
import DemoBanner from './mocks/demo/DemoBanner';
import { erEksternBruker } from './mocks/demo/localStorage';

setDefaultOptions({ locale: nn });

Expand All @@ -31,16 +30,7 @@ const renderApp = () => {
}
};

const isTest = import.meta.env.MODE === 'test';
if (USE_MOCK) {
const pathnamePrefix = `${import.meta.env.BASE_URL}${USE_HASH_ROUTER ? '#/' : ''}`;

// if (erEksternBruker() && !isTest) {
// window.history.replaceState({}, '', pathnamePrefix);
// } else if (!erEksternBruker() && !isTest) {
// window.history.replaceState({}, '', pathnamePrefix);
// }

import('./mocks')
.then(({ default: startWorker }) => startWorker())
.then(() => {
Expand Down

0 comments on commit 9203202

Please sign in to comment.