From 706b823c4a3aa145670fdb8f1cf37390080e55c9 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 21 Aug 2020 15:50:14 +0300 Subject: [PATCH] fix(client) dom: buffer: get, set -> getJson, setJson (#295) --- client/dom/buffer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/dom/buffer.js b/client/dom/buffer.js index 3569ebeb..1c81d473 100644 --- a/client/dom/buffer.js +++ b/client/dom/buffer.js @@ -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, });