From 0ff75f629c529b61d64e3668279cc8dc63a6c3c2 Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Mon, 6 Jun 2022 00:03:24 -0400 Subject: [PATCH] Remove unneeded import --- src/ui/App.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/App.tsx b/src/ui/App.tsx index 581a48f..13a812a 100644 --- a/src/ui/App.tsx +++ b/src/ui/App.tsx @@ -18,7 +18,7 @@ import Game from './components/menu/Game' import RightBar from './components/RightBar' import { getConfigOption, setConfigOption } from '../utils/configuration' import { invoke } from '@tauri-apps/api' -import { appDir, dataDir } from '@tauri-apps/api/path' +import { dataDir } from '@tauri-apps/api/path' import { appWindow } from '@tauri-apps/api/window' import { convertFileSrc } from '@tauri-apps/api/tauri' import { getTheme, loadTheme } from '../utils/themes' @@ -87,7 +87,7 @@ class App extends React.Component { const theme = await getConfigOption('theme') if (theme && theme !== 'default') { const themeObj = await getTheme(theme) - loadTheme(themeObj, document) + await loadTheme(themeObj, document) } if(!custom_bg || !/png|jpg|jpeg$/.test(custom_bg)) { @@ -103,7 +103,7 @@ class App extends React.Component { }, this.forceUpdate) } } else { - const isUrl = /^(?:http(s)?:\/\/)/gm.test(custom_bg) + const isUrl = /^http(s)?:\/\//gm.test(custom_bg) if (!isUrl) { const isValid = await invoke('dir_exists', {