]> source.dussan.org Git - gitea.git/commitdiff
Disable Vue's console advertisments (#15354)
authorsilverwind <me@silverwind.io>
Fri, 9 Apr 2021 10:12:55 +0000 (12:12 +0200)
committerGitHub <noreply@github.com>
Fri, 9 Apr 2021 10:12:55 +0000 (11:12 +0100)
web_src/js/index.js

index 28f2087e3804345402905f263b8be1f2495bdab4..d5fe53eef343550c5b8dbe13ca54f126e6cf3dcf 100644 (file)
@@ -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();