Cleanup unused code
This commit is contained in:
parent
f2afa7e7be
commit
a3add8ada3
1 changed files with 3 additions and 4 deletions
|
|
@ -1,5 +1,3 @@
|
||||||
use tauri::Manager;
|
|
||||||
|
|
||||||
#[cfg(target_os = "android")]
|
#[cfg(target_os = "android")]
|
||||||
fn init_logger() {
|
fn init_logger() {
|
||||||
android_logger::init_once(
|
android_logger::init_once(
|
||||||
|
|
@ -49,12 +47,13 @@ pub fn run() {
|
||||||
.plugin(tauri_plugin_http::init())
|
.plugin(tauri_plugin_http::init())
|
||||||
.plugin(tauri_plugin_geolocation::init())
|
.plugin(tauri_plugin_geolocation::init())
|
||||||
.invoke_handler(tauri::generate_handler![get_device_info, send_to_bot])
|
.invoke_handler(tauri::generate_handler![get_device_info, send_to_bot])
|
||||||
.setup(|app| {
|
.setup(|_app| {
|
||||||
log::info!("BotOS initialized, loading botui...");
|
log::info!("BotOS initialized, loading botui...");
|
||||||
|
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
{
|
{
|
||||||
if let Some(window) = app.get_webview_window("main") {
|
use tauri::Manager;
|
||||||
|
if let Some(window) = _app.get_webview_window("main") {
|
||||||
window.open_devtools();
|
window.open_devtools();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue