Skip to content

Commit

Permalink
Fix playback linux in release mode, enable devtools
Browse files Browse the repository at this point in the history
  • Loading branch information
tranxuanthang committed Jun 11, 2023
1 parent e2aefbb commit 8ecaf07
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ tauri-build = { version = "1.3", features = [] }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.3", features = ["dialog-all", "global-shortcut-all", "os-all", "path-all", "protocol-all", "window-all"] }
tauri = { version = "1.3", features = ["devtools", "dialog-all", "global-shortcut-all", "os-all", "path-all", "protocol-all", "window-all"] }
globwalk = "0.8.1"
reqwest = { version = "0.11.12", features = ["json"] }
lofty = "0.13.0"
Expand Down
1 change: 0 additions & 1 deletion src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ async fn download_lyrics(track_id: i64, app_handle: AppHandle) -> Result<(), Str

#[tauri::command]
fn open_devtools(window: tauri::Window) {
#[cfg(debug_assertions)]
{
window.open_devtools();
}
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
}
},
"security": {
"csp": "default-src 'self'; img-src 'self' asset: https://asset.localhost; media-src 'self' asset: https://asset.localhost"
"csp": "default-src 'self'; img-src 'self' asset: https://asset.localhost; media-src 'self' asset: https://asset.localhost; connect-src 'self' asset: *"
},
"updater": {
"active": false
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="h-screen w-screen flex flex-col select-none border border-brave-90">
<div data-tauri-drag-region class="flex justify-end items-start text-sm flex-none z-40">
<div v-if="!isProd" class="py-2 px-4 text-hoa-1400 hover:bg-hoa-600 active:bg-hoa-800 transition" @click="openDevtools">
<div class="py-2 px-4 text-hoa-1400 hover:bg-hoa-600 active:bg-hoa-800 transition" @click="openDevtools">
<Bug />
</div>
<div class="py-2 px-4 text-brave-35 hover:bg-brave-90 active:bg-brave-80 transition" @click="minimizeWindow">
Expand Down

0 comments on commit 8ecaf07

Please sign in to comment.