mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
web: implement native compression
This commit is contained in:
@@ -62,5 +62,18 @@ contextBridge.exposeInMainWorld("native", {
|
||||
buttonLabel,
|
||||
defaultPath
|
||||
});
|
||||
},
|
||||
gzip: ({ data, level }) => {
|
||||
return ipcRenderer.invoke("fromRenderer", {
|
||||
type: "gzip",
|
||||
data,
|
||||
level
|
||||
});
|
||||
},
|
||||
gunzip: ({ data }) => {
|
||||
return ipcRenderer.invoke("fromRenderer", {
|
||||
type: "gunzip",
|
||||
data
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user