diff options
author | Remy Raes <raes.remy@gmail.com> | 2022-12-02 01:28:06 +0100 |
---|---|---|
committer | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2022-12-02 01:48:27 +0100 |
commit | d9eeec6a6c46db38c8243760789fe56d6f198b27 (patch) | |
tree | 08070baf6d793a5660ab8fb0cca123bd11ed5d8d /src-vue/src/plugins | |
parent | c3c2a0ff6684fdf257718673ad21026018d08a93 (diff) | |
download | FlightCore-d9eeec6a6c46db38c8243760789fe56d6f198b27.tar.gz FlightCore-d9eeec6a6c46db38c8243760789fe56d6f198b27.zip |
build: disable context menu in release builds
Diffstat (limited to 'src-vue/src/plugins')
-rw-r--r-- | src-vue/src/plugins/store.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts index 3d55d2a4..b51f97e5 100644 --- a/src-vue/src/plugins/store.ts +++ b/src-vue/src/plugins/store.ts @@ -290,6 +290,9 @@ async function _initializeApp(state: any) { if (menu_bar_handle !== null) { menu_bar_handle.classList.toggle('developer_build'); } + } else { + // Disable context menu in release build. + document.addEventListener('contextmenu', event => event.preventDefault()); } // Grab Northstar release canal value from store if exists |