diff --git a/extensions/src/popup/Popup.tsx b/extensions/src/popup/Popup.tsx index 3686502..d7d8d36 100644 --- a/extensions/src/popup/Popup.tsx +++ b/extensions/src/popup/Popup.tsx @@ -26,7 +26,7 @@ export default class Popup extends React.Component { this.setState({ allowedDomains: [], configVisible: false, - url: 'http://localhost:3000', + url: localStorage.getItem('url') || 'http://localhost:3000', fetched: false, loading: false, }); @@ -75,6 +75,7 @@ export default class Popup extends React.Component { } onUrlChange(ev: any) { + localStorage.setItem('url', ev.target.value); this.setState({ url: ev.target.value, }); diff --git a/public/artipub-helper.zip b/public/artipub-helper.zip index f026479..a34f672 100644 Binary files a/public/artipub-helper.zip and b/public/artipub-helper.zip differ diff --git a/spiders/oschina.js b/spiders/oschina.js index 6ecadf0..863fe6b 100644 --- a/spiders/oschina.js +++ b/spiders/oschina.js @@ -64,8 +64,6 @@ class OschinaSpider extends BaseSpider { ] const index = categories.indexOf(task.category) - console.log(index) - const items = document.querySelectorAll('.inline.fields > .field:nth-child(1) > .dropdown .item') for (let i = 0; i < items.length; i++) { const item = items[i]