Skip to content

Commit

Permalink
fix: observer setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Javran committed Sep 13, 2018
1 parent 25cf214 commit f960ad3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ your ship girl leveling plans.

## Changelog

### 2.0.1

- Fix a problem that prevents saving.

### 2.0.0

- Updated exp-related data to support current max level (Lv. 175)
Expand Down
4 changes: 4 additions & 0 deletions index.es
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@ import { LevelingRoot as reactClass } from './ui'
import {
admiralIdSelector,
} from './selectors'
import { globalSubscribe, globalUnsubscribe } from './observers'

const { getStore } = window

const windowMode = true

const pluginDidLoad = () => {
globalSubscribe()

setTimeout(() => {
// try normalizing plugin dir structure to one used in 2.0.0
migrate()
Expand All @@ -24,6 +27,7 @@ const pluginDidLoad = () => {
}

const pluginWillUnload = () => {
globalUnsubscribe()
}

export {
Expand Down

0 comments on commit f960ad3

Please sign in to comment.