mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-09 00:30:28 +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 React from 'react';
|
||||||
import { createRoot } from 'react-dom/client';
|
import { createRoot } from 'react-dom/client';
|
||||||
import { enableMapSet } from 'immer';
|
import { enableMapSet } from 'immer';
|
||||||
|
|
@ -17,8 +16,8 @@ document.body.classList.add(configClass, varsClass);
|
||||||
if ('serviceWorker' in navigator) {
|
if ('serviceWorker' in navigator) {
|
||||||
const isProduction = import.meta.env.MODE === 'production';
|
const isProduction = import.meta.env.MODE === 'production';
|
||||||
const swUrl = isProduction
|
const swUrl = isProduction
|
||||||
? `${trimTrailingSlash(import.meta.env.BASE_URL)}/sw.js`
|
? `${trimTrailingSlash(import.meta.env.BASE_URL)}/sw.js`
|
||||||
: `/dev-sw.js?dev-sw`;
|
: `/dev-sw.js?dev-sw`;
|
||||||
|
|
||||||
const swRegisterOptions: RegistrationOptions = {};
|
const swRegisterOptions: RegistrationOptions = {};
|
||||||
if (!isProduction) {
|
if (!isProduction) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue