We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f27f61 commit 26bcb88Copy full SHA for 26bcb88
lib/plugin.js
@@ -2,7 +2,7 @@ import Vue from 'vue'
2
import Segment from '@dansmaculotte/vue-segment'
3
4
function shouldUseRouter(moduleOptions, $config) {
5
- return moduleOptions.useRouter || $config.SEGMENT_USE_ROUTER || true
+ return moduleOptions.useRouter ?? $config.SEGMENT_USE_ROUTER ?? true
6
}
7
8
const OPTIONS = '<%= JSON.stringify(options) %>'
0 commit comments