mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-12 12:59:57 +00:00
Text-slicer: Fix issue with missing destination title
This commit is contained in:
parent
2a4a3d9fe9
commit
c5ac10024b
@ -1,5 +1,5 @@
|
||||
/*\
|
||||
title: $:/plugins/tiddlywiki/text-slicer/modules/startup/slicer.js
|
||||
title: $:/plugins/tiddlywiki/text-slicer/modules/startup/slicer-message.js
|
||||
type: application/javascript
|
||||
module-type: startup
|
||||
|
||||
@ -22,7 +22,7 @@ exports.synchronous = true;
|
||||
exports.startup = function() {
|
||||
$tw.rootWidget.addEventListener("tm-slice-tiddler",function(event) {
|
||||
var slicer = new $tw.Slicer($tw.wiki,event.param,{
|
||||
destTitle: event.paramObject.destTitle
|
||||
destTitle: event.paramObject && event.paramObject.destTitle
|
||||
});
|
||||
slicer.sliceTiddler(event.param)
|
||||
slicer.outputTiddlers();
|
||||
|
Loading…
Reference in New Issue
Block a user