Skip to content

Commit ea44683

Browse files
authored
Make WebMCP detection more flexible (#180)
1 parent 0a20e80 commit ea44683

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

dist/fugu-apis.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ const patterns = {
831831
chromeStatusID: 5176273954144256,
832832
},
833833
'WebMCP': {
834-
regEx: /\bnavigator\.modelContext\.provideContext\s*\(/g,
834+
regEx: /\bnavigator\.modelContext\./g,
835835
where: 'JavaScript',
836836
supported: (async () => 'modelContext' in navigator)(),
837837
featureDetection: `(async () => 'modelContext' in navigator)()`,

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"homepage": "https://github.com/HTTPArchive/custom-metrics#readme",
2222
"devDependencies": {
23-
"fugu-api-data": "^1.24.0",
23+
"fugu-api-data": "^1.25.0",
2424
"jest": "^29.7.0",
2525
"webpagetest": "github:HTTPArchive/WebPageTest.api-nodejs"
2626
},

0 commit comments

Comments
 (0)