diff options
author | silverwind <me@silverwind.io> | 2021-04-09 12:12:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-09 11:12:55 +0100 |
commit | 99f835b9cab8da9a14688d88228057518ca1f669 (patch) | |
tree | 70d4a20dd21b89ab797a4142ee73b44dc2d2dd95 /web_src | |
parent | 477c4530e48c072aa3d02c9e62c8428768c443e6 (diff) | |
download | gitea-99f835b9cab8da9a14688d88228057518ca1f669.tar.gz gitea-99f835b9cab8da9a14688d88228057518ca1f669.zip |
Disable Vue's console advertisments (#15354)
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/js/index.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js index 28f2087e38..d5fe53eef3 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -35,6 +35,11 @@ const commentMDEditors = {}; // Silence fomantic's error logging when tabs are used without a target content element $.fn.tab.settings.silent = true; +// Silence Vue's console advertisments in dev mode +// To use the Vue browser extension, enable the devtools option temporarily +Vue.config.productionTip = false; +Vue.config.devtools = false; + function initCommentPreviewTab($form) { const $tabMenu = $form.find('.tabular.menu'); $tabMenu.find('.item').tab(); |