mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-07 07:40:29 +03:00
remove disable import
This commit is contained in:
parent
4af54629f7
commit
8a3eee367d
1 changed files with 2 additions and 3 deletions
|
|
@ -1,4 +1,3 @@
|
|||
/* eslint-disable import/first */
|
||||
import React from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import { enableMapSet } from 'immer';
|
||||
|
|
@ -17,8 +16,8 @@ document.body.classList.add(configClass, varsClass);
|
|||
if ('serviceWorker' in navigator) {
|
||||
const isProduction = import.meta.env.MODE === 'production';
|
||||
const swUrl = isProduction
|
||||
? `${trimTrailingSlash(import.meta.env.BASE_URL)}/sw.js`
|
||||
: `/dev-sw.js?dev-sw`;
|
||||
? `${trimTrailingSlash(import.meta.env.BASE_URL)}/sw.js`
|
||||
: `/dev-sw.js?dev-sw`;
|
||||
|
||||
const swRegisterOptions: RegistrationOptions = {};
|
||||
if (!isProduction) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue