core refactor for runtime support
This commit is contained in:
@@ -4,22 +4,22 @@ export default class IpcAdapter {
|
||||
}
|
||||
|
||||
async init() {
|
||||
return await window.adapter.call('init')
|
||||
return await window.api.adapterCall('init')
|
||||
}
|
||||
|
||||
async getAll() {
|
||||
return await window.adapter.call('getAll')
|
||||
return await window.api.adapterCall('getAll')
|
||||
}
|
||||
|
||||
async create(note) {
|
||||
return await window.adapter.call('create', note)
|
||||
return await window.api.adapterCall('create', note)
|
||||
}
|
||||
|
||||
async update(note) {
|
||||
return await window.adapter.call('update', note)
|
||||
return await window.api.adapterCall('update', note)
|
||||
}
|
||||
|
||||
async delete(id) {
|
||||
return await window.adapter.call('delete', id)
|
||||
return await window.api.adapterCall('delete', id)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user