remove data-no-tooltip

This commit is contained in:
silverwind 2024-04-30 15:52:13 +02:00
parent 3de268d912
commit 729864b015
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443
2 changed files with 1 additions and 2 deletions

View File

@ -158,7 +158,7 @@ function updateStopwatchTime(seconds) {
el.setAttribute('format', 'micro');
el.setAttribute('datetime', datetime);
el.setAttribute('lang', 'en-US');
el.setAttribute('data-no-tooltip', 'true');
el.setAttribute('title', ''); // make <relative-time> show no title and therefor no tooltip
parent.append(el);
}
}

View File

@ -96,7 +96,6 @@ function attachTooltip(target, content = null) {
function switchTitleToTooltip(target) {
let title = target.getAttribute('title');
if (target.getAttribute('data-no-tooltip')) return;
if (title) {
// apply custom formatting to relative-time's tooltips
if (target.tagName.toLowerCase() === 'relative-time') {