From 69bcc61a0157eb6e6782fa0487bf08ab3c83ef08 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sun, 17 Feb 2019 13:30:08 +0700 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=BA=D0=BB=D1=8E=D1=87=D0=B0=D0=B5?= =?UTF-8?q?=D0=BC=20yandex-=D0=BC=D0=B5=D1=82=D1=80=D0=B8=D0=BA=D1=83=20?= =?UTF-8?q?=D1=82=D0=BE=D0=BB=D1=8C=D0=BA=D0=BE=20=D0=BD=D0=B0=20productio?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/api/misc.js | 2 +- client/components/App.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/api/misc.js b/client/api/misc.js index 94ebdab5..04fe804b 100644 --- a/client/api/misc.js +++ b/client/api/misc.js @@ -6,7 +6,7 @@ const api = axios.create({ class Misc { async loadConfig() { - const response = await api.post('/config', {params: ['name', 'version', 'mode', 'maxUploadFileSize']}); + const response = await api.post('/config', {params: ['name', 'version', 'mode', 'maxUploadFileSize', 'branch']}); return response.data; } } diff --git a/client/components/App.vue b/client/components/App.vue index d189863e..7cb8b160 100644 --- a/client/components/App.vue +++ b/client/components/App.vue @@ -210,7 +210,7 @@ class App extends Vue { } //yandex-метрика для omnireader - if (this.mode == 'omnireader' && !this.yaMetricsDone) { + if (this.config.branch == 'production' && this.mode == 'omnireader' && !this.yaMetricsDone) { (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");// eslint-disable-line no-unexpected-multiline