1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Fix tm-copy-to-clipboard crash

See https://github.com/Jermolene/TiddlyWiki5/pull/8211#issuecomment-2138600286
This commit is contained in:
Jeremy Ruston 2024-05-30 17:58:07 +01:00
parent 65d9384261
commit 7a50b2b554

View File

@ -70,8 +70,8 @@ exports.startup = function() {
// Install the copy-to-clipboard mechanism
$tw.rootWidget.addEventListener("tm-copy-to-clipboard",function(event) {
$tw.utils.copyToClipboard(event.param,{
successNotification: event.paramObject.successNotification,
failureNotification: event.paramObject.failureNotification
successNotification: event.paramObject && event.paramObject.successNotification,
failureNotification: event.paramObject && event.paramObject.failureNotification
});
});
// Install the tm-focus-selector message