-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d9b4d75
commit 52ab341
Showing
4 changed files
with
22 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# @pear-rec/desktop | ||
|
||
## 1.2.11 | ||
|
||
feat: 打包发布到 git | ||
|
||
## 1.2.10 | ||
|
||
perf: 设置保存地址 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
import { createRoot } from "react-dom/client"; | ||
import { initI18n } from "../i18n"; | ||
import "./index.scss"; | ||
import { createRoot } from 'react-dom/client'; | ||
import { initI18n } from '../i18n'; | ||
import './index.scss'; | ||
|
||
export default function initApp(App) { | ||
const userAgent = navigator.userAgent.toLowerCase(); | ||
window.isElectron = userAgent.indexOf(" electron/") > -1 ? true : false; | ||
window.isOffline = | ||
location.host == "pear-rec-xiguapi.vercel.app" ? true : false; | ||
const container = document.getElementById("root") as HTMLElement; | ||
const root = createRoot(container); | ||
initI18n(); | ||
root.render(<App />); | ||
const userAgent = navigator.userAgent.toLowerCase(); | ||
window.isElectron = userAgent.indexOf(' electron/') > -1 ? true : false; | ||
window.isOffline = location.host == 'pear-rec-xiguapi.vercel.app' ? true : false; | ||
const container = document.getElementById('root') as HTMLElement; | ||
const root = createRoot(container); | ||
initI18n(); | ||
root.render(<App />); | ||
} |