Skip to content

Commit

Permalink
Merge pull request #2 from k-miyata/fix-matches-bug
Browse files Browse the repository at this point in the history
Fix URL matches bug
  • Loading branch information
k-miyata authored Oct 2, 2018
2 parents d2d1964 + 03dad5f commit f957622
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const notemuChromeext = {

document.body.addEventListener('transitionend', () => {
const path = location.pathname;
// "https://note.mu/<Username>/n/<Note ID>" or "https://<Domain>/n/<Note ID>"
if (/^\/[\w\-]+\/n\/\w+$/.test(path) || /^\/n\/\w+$/.test(path))
notemuChromeext.changeBackground();
});
Expand Down
5 changes: 2 additions & 3 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
"manifest_version": 2,
"name": "__MSG_ext_name__",
"description": "__MSG_ext_description__",
"version": "1.0.0",
"version": "1.0.1",
"icons": {
"128": "icon_128.png"
},
"default_locale": "en",
"content_scripts": [
{
"matches": [
"https://note.mu/*/n/*",
"https://*/n/*"
"https://*/*"
],
"css": [
"main.css"
Expand Down

0 comments on commit f957622

Please sign in to comment.