@worksafevictoria/wcl7.5 1.1.0-beta.80 → 1.1.0-beta.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/utility.js +2 -2
  2. package/package.json +1 -1
package/lib/utility.js CHANGED
@@ -34,10 +34,10 @@ function isGovSite(url) {
34
34
  }
35
35
  }
36
36
 
37
- function navigateToPath(path, newTab) {
37
+ function navigateToPath(path, newTab, nuxtRouter) {
38
38
  const url = String(path).startsWith('www.') ? `http://${path}` : path
39
39
  const isAbsolute = isAbsoluteUrl(url)
40
- const router = this?.$router ? this.$router : useRouter()
40
+ const router = nuxtRouter ? nuxtRouter : this.$router
41
41
  if (!isAbsolute && router && !newTab) {
42
42
  router.push({
43
43
  path: url,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worksafevictoria/wcl7.5",
3
- "version": "1.1.0-beta.80",
3
+ "version": "1.1.0-beta.81",
4
4
  "main": "src/index.js",
5
5
  "license": "MIT",
6
6
  "repository": {