mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(client) dom: buffer: get, set -> getJson, setJson (#295)
This commit is contained in:
parent
aeb5906de3
commit
706b823c4a
1 changed files with 4 additions and 4 deletions
|
|
@ -58,8 +58,8 @@ function BufferProto() {
|
|||
|
||||
async function readBuffer() {
|
||||
const [e, cp, ct] = await tryToPromiseAll([
|
||||
Storage.get(COPY),
|
||||
Storage.get(CUT),
|
||||
Storage.getJson(COPY),
|
||||
Storage.getJson(CUT),
|
||||
]);
|
||||
|
||||
return [
|
||||
|
|
@ -79,7 +79,7 @@ function BufferProto() {
|
|||
return;
|
||||
|
||||
await Storage.remove(CUT);
|
||||
await Storage.set(COPY, {
|
||||
await Storage.setJson(COPY, {
|
||||
from,
|
||||
names,
|
||||
});
|
||||
|
|
@ -96,7 +96,7 @@ function BufferProto() {
|
|||
|
||||
addCutClass();
|
||||
|
||||
await Storage.set(CUT, {
|
||||
await Storage.setJson(CUT, {
|
||||
from,
|
||||
names,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue