mirror of
https://github.com/HeyPuter/puter.git
synced 2026-09-13 08:45:45 +00:00
Update IPC.js
This commit is contained in:
+3
-3
@@ -188,7 +188,7 @@ window.addEventListener('message', async (event) => {
|
||||
puter.kv.set({
|
||||
key: event.data.key,
|
||||
value: event.data.value,
|
||||
app: app_uuid,
|
||||
app_uid: app_uuid,
|
||||
}).then(() => {
|
||||
// send confirmation to requester window
|
||||
target_iframe.contentWindow.postMessage({
|
||||
@@ -202,7 +202,7 @@ window.addEventListener('message', async (event) => {
|
||||
else if(event.data.msg === 'getItem' && event.data.key){
|
||||
puter.kv.get({
|
||||
key: event.data.key,
|
||||
app: app_uuid,
|
||||
app_uid: app_uuid,
|
||||
}).then((result) => {
|
||||
// send confirmation to requester window
|
||||
target_iframe.contentWindow.postMessage({
|
||||
@@ -218,7 +218,7 @@ window.addEventListener('message', async (event) => {
|
||||
else if(event.data.msg === 'removeItem' && event.data.key){
|
||||
puter.kv.del({
|
||||
key: event.data.key,
|
||||
app: app_uuid,
|
||||
app_uid: app_uuid,
|
||||
}).then(() => {
|
||||
// send confirmation to requester window
|
||||
target_iframe.contentWindow.postMessage({
|
||||
|
||||
Reference in New Issue
Block a user