Skip to content

Commit 26bcb88

Browse files
fix: typo
1 parent 0f27f61 commit 26bcb88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plugin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Vue from 'vue'
22
import Segment from '@dansmaculotte/vue-segment'
33

44
function shouldUseRouter(moduleOptions, $config) {
5-
return moduleOptions.useRouter || $config.SEGMENT_USE_ROUTER || true
5+
return moduleOptions.useRouter ?? $config.SEGMENT_USE_ROUTER ?? true
66
}
77

88
const OPTIONS = '<%= JSON.stringify(options) %>'

0 commit comments

Comments
 (0)