Skip to content

Commit

Permalink
fixed #38
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Oct 12, 2019
1 parent a8ce89d commit 35be023
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion extensions/src/popup/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class Popup extends React.Component<AppProps, AppState> {
this.setState({
allowedDomains: [],
configVisible: false,
url: 'http://localhost:3000',
url: localStorage.getItem('url') || 'http://localhost:3000',
fetched: false,
loading: false,
});
Expand Down Expand Up @@ -75,6 +75,7 @@ export default class Popup extends React.Component<AppProps, AppState> {
}

onUrlChange(ev: any) {
localStorage.setItem('url', ev.target.value);
this.setState({
url: ev.target.value,
});
Expand Down
Binary file modified public/artipub-helper.zip
Binary file not shown.
2 changes: 0 additions & 2 deletions spiders/oschina.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 35be023

Please sign in to comment.