Skip to content

Commit

Permalink
update matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
aladoui committed Jul 2, 2024
1 parent 228fb5f commit 93f46c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Install `MW YTF` with yarn​:

- [Credentials](https://start.1password.com/open/i?a=KBXK36HQOFATFGS55MUTEP54XM&h=matterway.1password.com&i=tcwoz4g7xxfyxmq46faeywn5i4&v=vyzebl4klpdt6t6ttafsctogze)
- Steps to trigger:
- go to https://yetiforce.matterway.io/index.php
- go to https://yetiforce.matterway.io/index.php?module=Home&view=DashBoard

## Additional Notes​

Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"background_script": "background.js",
"content_script": "content.js",
"matcher_script": "matcher.js",
"urls": ["*/yetiforce.matterway.io/index.php*"]
"urls": ["*yetiforce.matterway.io/index.php?module=Home&view=DashBoard*"]
}
3 changes: 2 additions & 1 deletion src/matcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export default function matcher(
return true;
}

const triggerUrl = 'https://yetiforce.matterway.io/index';
const triggerUrl =
'https://yetiforce.matterway.io/index.php?module=Home&view=DashBoard';

const matcherResult =
window.location.href.includes(triggerUrl) && skillEnv.tag === 'local';
Expand Down

0 comments on commit 93f46c1

Please sign in to comment.