1
0
mirror of https://github.com/Tim-Paik/neutauri.git synced 2024-10-12 23:29:41 +00:00

fixed windows error

This commit is contained in:
2022-02-01 19:48:42 +08:00
parent 449fb69d75
commit 37d1a057fc
2 changed files with 32 additions and 15 deletions

View File

@ -1,3 +1,5 @@
#![windows_subsystem = "windows"]
use wry::{
application::{
dpi::{PhysicalSize, Size},
@ -9,11 +11,7 @@ use wry::{
};
mod data;
#[cfg(windows)]
const PROTOCOL_PREFIX: &str = "https://{PROTOCOL}.";
#[cfg(not(windows))]
const PROTOCOL_PREFIX: &str = "{PROTOCOL}://";
const PROTOCOL: &str = "neu";
fn custom_protocol_uri<T: Into<String>>(protocol: T, path: T) -> String {