mirror of
https://github.com/kopia/kopia.git
synced 2026-10-22 14:15:03 -04:00
* test(ui): added minimal automated KopiaUI test ``` $ make kopia-ui-test ``` This currently executes super minimal E2E test on pre-built KopiaUI using Playwright https://playwright.dev * better os/arch detection * remove unwanted log * fixed executable path on linux * fix for linux, misc
14 lines
340 B
JavaScript
14 lines
340 B
JavaScript
const { contextBridge, shell, ipcRenderer } = require("electron");
|
|
|
|
contextBridge.exposeInMainWorld("kopiaUI", {
|
|
"selectDirectory": function (onSelected) {
|
|
ipcRenderer.invoke('select-dir').then(v => {
|
|
onSelected(v);
|
|
});
|
|
},
|
|
"browseDirectory": function(path) {
|
|
shell.openPath(path);
|
|
},
|
|
})
|
|
|