sync-omo-config 1.3.3 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50,10 +50,10 @@ async function notifyDesktop(title, message) {
|
|
|
50
50
|
].join("; ");
|
|
51
51
|
await run(["powershell", "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command", toast]);
|
|
52
52
|
const dialog = [
|
|
53
|
-
"Add-Type -AssemblyName
|
|
54
|
-
`[System.Windows.MessageBox]::Show('${escps(message)}','${escps(title)}') | Out-Null`
|
|
53
|
+
"Add-Type -AssemblyName System.Windows.Forms",
|
|
54
|
+
`[System.Windows.Forms.MessageBox]::Show('${escps(message)}','${escps(title)}',[System.Windows.Forms.MessageBoxButtons]::OK,[System.Windows.Forms.MessageBoxIcon]::Warning,[System.Windows.Forms.MessageBoxDefaultButton]::Button1,[System.Windows.Forms.MessageBoxOptions]::DefaultDesktopOnly) | Out-Null`
|
|
55
55
|
].join("; ");
|
|
56
|
-
await run(["powershell", "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command", dialog]);
|
|
56
|
+
await run(["powershell", "-NoProfile", "-Sta", "-ExecutionPolicy", "Bypass", "-Command", dialog]);
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
59
|
console.warn(`[sync-omo-config] Desktop notify not supported on ${platform}`);
|