@jswork/i18n-language-detect
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -5,4 +5,4 @@ /*! | ||
* homepage: https://js.work | ||
* version: 1.0.3 | ||
* date: 2023-08-23 18:34:50 | ||
* version: 1.0.4 | ||
* date: 2023-08-23 19:45:35 | ||
* license: MIT | ||
@@ -9,0 +9,0 @@ */ |
@@ -5,4 +5,4 @@ /*! | ||
* homepage: https://js.work | ||
* version: 1.0.3 | ||
* date: 2023-08-23 18:34:46 | ||
* version: 1.0.4 | ||
* date: 2023-08-23 19:45:34 | ||
* license: MIT | ||
@@ -29,4 +29,4 @@ */ | ||
var routerType = inOptions.routerType; | ||
var url = routerType === 'hash' ? window.location.hash : window.location.search; | ||
var uri = new URL(url, 'http://localhost'); | ||
var suburl = routerType === 'hash' ? window.location.hash : window.location.search; | ||
var uri = new URL(suburl.slice(1), 'http://localhost'); | ||
var lang = null; | ||
@@ -33,0 +33,0 @@ for (var index = 0; index < keys.length; index++) { |
@@ -6,4 +6,4 @@ "use strict"; | ||
* homepage: https://js.work | ||
* version: 1.0.3 | ||
* date: 2023-08-23 18:34:50 | ||
* version: 1.0.4 | ||
* date: 2023-08-23 19:45:35 | ||
* license: MIT | ||
@@ -31,4 +31,4 @@ */ | ||
var routerType = inOptions.routerType; | ||
var url = routerType === 'hash' ? window.location.hash : window.location.search; | ||
var uri = new URL(url, 'http://localhost'); | ||
var suburl = routerType === 'hash' ? window.location.hash : window.location.search; | ||
var uri = new URL(suburl.slice(1), 'http://localhost'); | ||
var lang = null; | ||
@@ -35,0 +35,0 @@ for (var index = 0; index < keys.length; index++) { |
{ | ||
"name": "@jswork/i18n-language-detect", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Language detect plugin.", | ||
@@ -55,3 +55,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "7ea2f970ac738ec0592fee7727ef5d14c2c1dc0d" | ||
"gitHead": "6ec92f89588509bde78362346bf42ac5a48afba9" | ||
} |
9668