git ssb

1+

punkmonk.termux / mvd



forked from ev / mvd

Commit e92a779cbb192b4db12c3972a692fe384b8cb71d

fix error where button state isn\'t properly tracked in queue

Ev Bogue committed on 11/12/2018, 7:34:30 PM
Parent: f37a22d0e5735c492bc3ad775666f1a96e290f9d

Files changed

tools.jschanged
tools.jsView
@@ -187,12 +187,14 @@
187187 sbot.query({query: [{$filter: { value: { author: id, content: {type: 'queue', message: src.key}}}}], live: true}),
188188 pull.drain(function (msg) {
189189 if (msg.value) {
190190 if (msg.value.content.queue == true) {
191- queueButton.replaceChild(removeFromQueue, addToQueue)
191+ queueButton.removeChild(queueButton.childNodes[0])
192+ queueButton.appendChild(removeFromQueue)
192193 }
193194 if (msg.value.content.queue == false) {
194- queueButton.replaceChild(addToQueue, removeFromQueue)
195+ queueButton.removeChild(queueButton.childNodes[0])
196+ queueButton.appendChild(addToQueue)
195197 }
196198 }
197199 })
198200 )

Built with git-ssb-web