diff --git a/src/js/main.js b/src/js/main.js index bcd2b5d..9094a55 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -93,7 +93,7 @@ const ideWebsitesList = [ const repoUrlPath = '/' + location.pathname.split('/').slice(1, 3).join('/'); const repoUrlFullPath = location.pathname.replace(/\/tree\/master$/, ''); -const hasPackageJson = [...document.querySelectorAll('.Details > .js-active-navigation-container > .Box-row')].some((el) => el.querySelector('a.js-navigation-open').innerText === 'package.json'); +const hasPackageJson = [...document.querySelectorAll('.Details > .js-active-navigation-container > .Box-row a.js-navigation-open')].some((el) => el.innerText === 'package.json'); switch (platform) { case 'github': diff --git a/src/manifest.json b/src/manifest.json index 4cc02ce..0d4a487 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -4,7 +4,7 @@ "manifest_version": 3, "update_url": "https://clients2.google.com/service/update2/crx", "homepage_url": "https://github.com/zvizvi/GitHub-Web-IDE", - "version": "1.0.16", + "version": "1.0.17", "author": "zvizvi5@outlook.com", "action": { "default_icon": {