Skip to content

Commit

Permalink
fix(keep): config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm committed Jun 14, 2023
1 parent bff053d commit e8f8d7e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion uniquely/keep-pwa/res/config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
window.appConfig = {
cdn: 'https://keep.soffit.co/cdn/v0',
cdn: '/cdn',
};
1 change: 0 additions & 1 deletion uniquely/keep-pwa/res/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
<body>
<alwatr-pwa unresolved>درحال بارگذاری...</alwatr-pwa>

<script type="module" src="config.js"></script>
<script type="module" src="alwatr-pwa.js"></script>

<noscript>
Expand Down
3 changes: 0 additions & 3 deletions uniquely/keep-pwa/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import {FetchOptions} from '@alwatr/fetch';
import {getConfKey} from '@alwatr/pwa-helper/config.js';

const token = getConfKey<string>('token');
export const config = {
cdn: getConfKey<string>('cdn'),
token,
fetchContextOptions: <Partial<FetchOptions>> {
method: 'GET',
token,
removeDuplicate: 'auto',
retry: 2,
retryDelay: 2_000,
Expand Down

0 comments on commit e8f8d7e

Please sign in to comment.