mirror of https://github.com/Tim-Paik/neutauri.git
The popup of the default right-click menu is now blocked by default in release mode
This commit is contained in:
parent
d561b97018
commit
9f5111ced6
|
@ -143,6 +143,7 @@ fn main() -> wry::Result<()> {
|
||||||
.with_visible(res.window_attr.visible)
|
.with_visible(res.window_attr.visible)
|
||||||
.with_transparent(res.window_attr.transparent)
|
.with_transparent(res.window_attr.transparent)
|
||||||
.with_web_context(&mut web_context)
|
.with_web_context(&mut web_context)
|
||||||
|
.with_initialization_script(r#"window.oncontextmenu = (event) => { event.preventDefault(); }"#)
|
||||||
.with_custom_protocol(PROTOCOL.to_string(), move |request| {
|
.with_custom_protocol(PROTOCOL.to_string(), move |request| {
|
||||||
let path = custom_protocol_uri_to_path(PROTOCOL, request.uri())?;
|
let path = custom_protocol_uri_to_path(PROTOCOL, request.uri())?;
|
||||||
let mut file = match res.open(path) {
|
let mut file = match res.open(path) {
|
||||||
|
|
Loading…
Reference in New Issue