Show previous games on focused pairable

This commit is contained in:
Claude Brisson
2024-08-19 16:45:36 +02:00
parent 38f2c445bb
commit 02af8466cb
6 changed files with 61 additions and 7 deletions

View File

@@ -362,3 +362,14 @@ onLoad(() => {
});
}
});
// Element.clearChildren method
if( typeof Element.prototype.clearChildren === 'undefined' ) {
Object.defineProperty(Element.prototype, 'clearChildren', {
configurable: true,
enumerable: false,
value: function() {
while(this.firstChild) this.removeChild(this.lastChild);
}
});
}