🔧Chore: IPC 通信
This commit is contained in:
@@ -1,2 +1,9 @@
|
||||
const func = async () => {
|
||||
const response = await window.versions.ping();
|
||||
console.log(response);
|
||||
};
|
||||
|
||||
func();
|
||||
|
||||
const information = document.getElementById("info");
|
||||
information.innerText = `Node.js version: ${window.versions.node()}\nChrome version: ${window.versions.chrome()}\nElectron version: ${window.versions.electron()}`;
|
||||
|
||||
Reference in New Issue
Block a user