Update to latest APIs
This commit is contained in:
parent
349cfe7177
commit
1983512fef
74 changed files with 2334 additions and 525 deletions
|
@ -1,5 +1,5 @@
|
|||
import {autorun} from 'mobx'
|
||||
import AdxApi from '../third-party/api'
|
||||
import AtpApi from '../third-party/api'
|
||||
import {RootStoreModel} from './models/root-store'
|
||||
import * as libapi from './lib/api'
|
||||
import * as storage from './lib/storage'
|
||||
|
@ -17,7 +17,7 @@ export async function setupState() {
|
|||
|
||||
libapi.doPolyfill()
|
||||
|
||||
const api = AdxApi.service(DEFAULT_SERVICE)
|
||||
const api = AtpApi.service(DEFAULT_SERVICE)
|
||||
rootStore = new RootStoreModel(api)
|
||||
try {
|
||||
data = (await storage.load(ROOT_STATE_STORAGE_KEY)) || {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue