Skip to content

Commit

Permalink
Fix tslint
Browse files Browse the repository at this point in the history
  • Loading branch information
karmakaze committed Jan 22, 2019
1 parent 6deb0f2 commit ed7fd32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/ListStories.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ declare global {
interface Window { adsbygoogle: any[] }
}
const noop = () => undefined
@Component({
props: {
storyType: String,
Expand All @@ -102,7 +104,7 @@ export default class ListStories extends Vue {
minWidth768.addListener(this.matchMediaWidth)
this.tick()
this.loadStories().then(() => {})
this.loadStories().then(noop)
}
sortTitle(day, col) {
Expand Down Expand Up @@ -418,7 +420,7 @@ export default class ListStories extends Vue {
// console.log('Loaded script for ads')
// }, 100)
setTimeout(() => {
if (document.querySelectorAll("ins").length === document.querySelectorAll("ins > *").length) {
if (document.querySelectorAll('ins').length === document.querySelectorAll('ins > *').length) {
return
}
(window.adsbygoogle = window.adsbygoogle || []).push({})
Expand Down

0 comments on commit ed7fd32

Please sign in to comment.