mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 09:00:26 +00:00
Disable context menu for markdown comps
This commit is contained in:
parent
d86925c1a3
commit
e56c159e0e
1 changed files with 2 additions and 0 deletions
|
@ -46,6 +46,8 @@ public class MarkdownComp extends Comp<CompStructure<StackPane>> {
|
|||
@SneakyThrows
|
||||
private WebView createWebView() {
|
||||
var wv = new WebView();
|
||||
wv.getEngine().setJavaScriptEnabled(false);
|
||||
wv.setContextMenuEnabled(false);
|
||||
wv.getEngine()
|
||||
.setUserDataDirectory(
|
||||
AppProperties.get().getDataDir().resolve("webview").toFile());
|
||||
|
|
Loading…
Reference in a new issue