mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-11 21:19:43 +00:00
fix web
This commit is contained in:
parent
6c5cb8963b
commit
bb3d33733e
2 changed files with 5 additions and 2 deletions
|
@ -9,6 +9,7 @@ export const remote = {
|
||||||
getCurrentWindow: callable,
|
getCurrentWindow: callable,
|
||||||
app: {
|
app: {
|
||||||
getAppPath: callable,
|
getAppPath: callable,
|
||||||
|
getLocale: () => 'en',
|
||||||
},
|
},
|
||||||
BrowserWindow: {
|
BrowserWindow: {
|
||||||
getFocusedWindow: callable,
|
getFocusedWindow: callable,
|
||||||
|
|
|
@ -3,10 +3,10 @@ import App from 'component/app';
|
||||||
import SnackBar from 'component/snackBar';
|
import SnackBar from 'component/snackBar';
|
||||||
// @if TARGET='app'
|
// @if TARGET='app'
|
||||||
import SplashScreen from 'component/splash';
|
import SplashScreen from 'component/splash';
|
||||||
import moment from 'moment';
|
|
||||||
import { ipcRenderer, remote, shell } from 'electron';
|
|
||||||
import * as ACTIONS from 'constants/action_types';
|
import * as ACTIONS from 'constants/action_types';
|
||||||
// @endif
|
// @endif
|
||||||
|
import { ipcRenderer, remote, shell } from 'electron';
|
||||||
|
import moment from 'moment';
|
||||||
import * as MODALS from 'constants/modal_types';
|
import * as MODALS from 'constants/modal_types';
|
||||||
import React, { useState, useEffect } from 'react';
|
import React, { useState, useEffect } from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
|
@ -202,6 +202,7 @@ function AppWrapper() {
|
||||||
const [readyToLaunch, setReadyToLaunch] = useState(haveLaunched || IS_WEB);
|
const [readyToLaunch, setReadyToLaunch] = useState(haveLaunched || IS_WEB);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
// @if TARGET='app'
|
||||||
moment.locale(remote.app.getLocale());
|
moment.locale(remote.app.getLocale());
|
||||||
|
|
||||||
autoUpdater.on('error', error => {
|
autoUpdater.on('error', error => {
|
||||||
|
@ -220,6 +221,7 @@ function AppWrapper() {
|
||||||
app.store.dispatch(doAutoUpdate());
|
app.store.dispatch(doAutoUpdate());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// @endif
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue