story-content: Fixed update weirdness, moved edit/remove modals up
This commit is contained in:
@@ -4,20 +4,11 @@ module.exports = class {
|
||||
onCreate(input) {
|
||||
this.state = {
|
||||
selectedChapter: "",
|
||||
bullshit: 0,
|
||||
}
|
||||
}
|
||||
|
||||
onMount() {
|
||||
this.state.selectedChapter = (window.location.hash||"#").slice(1)
|
||||
|
||||
// Marko is being silly and needs a state change to re-render
|
||||
setInterval(() => {
|
||||
this.state.bullshit++
|
||||
if (this.state.bullshit > 10000) {
|
||||
this.state.bullshit = 0
|
||||
}
|
||||
}, 250)
|
||||
}
|
||||
|
||||
chapterTitle(chapter) {
|
||||
|
||||
Reference in New Issue
Block a user