1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-03-11 05:58:10 +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 // Install the copy-to-clipboard mechanism
$tw.rootWidget.addEventListener("tm-copy-to-clipboard",function(event) { $tw.rootWidget.addEventListener("tm-copy-to-clipboard",function(event) {
$tw.utils.copyToClipboard(event.param,{ $tw.utils.copyToClipboard(event.param,{
successNotification: event.paramObject.successNotification, successNotification: event.paramObject && event.paramObject.successNotification,
failureNotification: event.paramObject.failureNotification failureNotification: event.paramObject && event.paramObject.failureNotification
}); });
}); });
// Install the tm-focus-selector message // Install the tm-focus-selector message