1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 15:53:55 +00:00

Fixed windows notifications so they work, if the message contains ' characters

This commit is contained in:
Bryan Roe
2020-01-31 10:43:00 -08:00
parent cdb7f4cfc0
commit 052c3d5414
2 changed files with 8 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@@ -87,6 +87,9 @@ function Toaster()
retVal._child.addModule('win-console', getJSModule('win-console'));
retVal._child.addModule('win-message-pump', getJSModule('win-message-pump'));
caption = caption.split("'").join("\\'");
title = title.split("'").join("\\'");
var str = "\
try{\
var toast = require('win-console');\