1
0
mirror of https://github.com/mbirth/tcl_update_db.git synced 2024-12-26 04:24:07 +00:00

Bugfix: innerText somehow returned version\x09, trimming helps.

This commit is contained in:
Markus Birth 2018-10-26 13:26:08 +02:00
parent 315e642700
commit 2c5a7cc1b4

View File

@ -32,10 +32,10 @@ document.addEventListener 'DOMContentLoaded', (event) ->
tt_text = document.querySelector '#tooltip-text' tt_text = document.querySelector '#tooltip-text'
ref = event.target.parentNode.dataset.ref ref = event.target.parentNode.dataset.ref
ver = event.target.innerText ver = event.target.innerText.trim()
meta = window.metadata[ref] meta = window.metadata[ref]
#console.log("Meta: %o", meta) #console.log("Meta: %o (Ver: %o)", meta, ver)
vermeta = meta['versions'][ver] vermeta = meta['versions'][ver]
updateText = '' updateText = ''