Merge pull request #3231 from wxh06/hash

Fix the bug of not showing popup when the url contains hash
main
Elbert Alias 4 years ago committed by GitHub
commit ef50c421b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,7 +2,8 @@
"dependencies": { "dependencies": {
"@prantlf/jsonlint": "^10.2.0", "@prantlf/jsonlint": "^10.2.0",
"adm-zip": "^0.4.14", "adm-zip": "^0.4.14",
"convert-svg-to-png": "^0.5.0" "convert-svg-to-png": "^0.5.0",
"languagedetect": "^2.0.0"
}, },
"devDependencies": { "devDependencies": {
"@nuxtjs/eslint-config": "^1.0.1", "@nuxtjs/eslint-config": "^1.0.1",

@ -137,7 +137,7 @@ class Driver {
} }
open(url) { open(url) {
return new Site(url, this) return new Site(url.split('#')[0], this)
} }
log(message, source = 'driver') { log(message, source = 'driver') {

@ -111,7 +111,7 @@ const Content = {
chrome.runtime.sendMessage({ chrome.runtime.sendMessage({
source: 'content.js', source: 'content.js',
func: 'analyzeJs', func: 'analyzeJs',
args: [location.href, data.wappalyzer.js] args: [location.href.split('#')[0], data.wappalyzer.js]
}) })
script.remove() script.remove()

@ -1242,6 +1242,11 @@ jsonfile@^4.0.0:
optionalDependencies: optionalDependencies:
graceful-fs "^4.1.6" graceful-fs "^4.1.6"
languagedetect@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/languagedetect/-/languagedetect-2.0.0.tgz#4b8fa2b7593b2a3a02fb1100891041c53238936c"
integrity sha512-AZb/liiQ+6ZoTj4f1J0aE6OkzhCo8fyH+tuSaPfSo8YHCWLFJrdSixhtO2TYdIkjcDQNaR4RmGaV2A5FJklDMQ==
levn@^0.3.0, levn@~0.3.0: levn@^0.3.0, levn@~0.3.0:
version "0.3.0" version "0.3.0"
resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee"

Loading…
Cancel
Save