Skip to content

Commit

Permalink
feat: debug in manual mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Chaptsev committed Dec 9, 2017
1 parent f726912 commit 306dcac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function createMetrika (Vue) {
if (config.debug) {console.warn('[vue-yandex-metrika] DEBUG is true: you\'ll see all API calls in the console')}

/* istanbul ignore next */
return {
return Vue.prototype.$metrika = Vue.$metrika = {
addFileExtension() {if (config.debug) {console.log('[vue-yandex-metrika] addFileExtension:', arguments)}},
extLink() {if (config.debug) {console.log('[vue-yandex-metrika] extLink:', arguments)}},
file() {if (config.debug) {console.log('[vue-yandex-metrika] file:', arguments)}},
Expand Down

0 comments on commit 306dcac

Please sign in to comment.