1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-18 05:45:25 +03:00

Add Vue devtools to the debug mode

This commit is contained in:
Miguel Angel Mulero Martinez 2020-10-15 12:15:22 +02:00
parent 0d87c1ab5c
commit 2384fb731f
3 changed files with 84 additions and 4 deletions

View file

@ -23,6 +23,11 @@ const betaflightModel = {
PortUsage,
};
if (process.env.NODE_ENV === 'development') {
console.log("Development mode enabled, installing Vue tools");
Vue.config.devtools = true;
}
const app = new Vue({
i18n: vueI18n,
data: betaflightModel,