1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-29 12:59:56 +00:00

Scrollable widget: Fix crash in CI

This commit is contained in:
Jeremy Ruston 2023-11-21 11:49:34 +00:00
parent 0cd3c9a8ac
commit 06b1cc4bca

View File

@ -191,6 +191,10 @@ ScrollableWidget.prototype.render = function(parent,nextSibling) {
}; };
ScrollableWidget.prototype.updateScrollPositionFromBoundTiddler = function() { ScrollableWidget.prototype.updateScrollPositionFromBoundTiddler = function() {
// Bail if we're running on the fakedom
if(!this.outerDomNode.scrollTo) {
return;
}
var tiddler = this.wiki.getTiddler(this.scrollableBind); var tiddler = this.wiki.getTiddler(this.scrollableBind);
if(tiddler) { if(tiddler) {
var scrollLeftTo = this.outerDomNode.scrollLeft; var scrollLeftTo = this.outerDomNode.scrollLeft;