Skip to content

Commit

Permalink
Tweak concatenation to template strings
Browse files Browse the repository at this point in the history
  • Loading branch information
machawk1 committed Jul 17, 2023
1 parent b1b5bab commit 54f963b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion mink-plugin/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function displayUIBasedOnContext () {
log('Case 3: Link header and datetime', tm)

chrome.runtime.sendMessage({
method: 'setTimemapInStorageAndCall', tm: tm, url: document.URL
method: 'setTimemapInStorageAndCall', tm, url: document.URL
})
} else {
log('Case 3: Link header, datetime in cache')
Expand Down
10 changes: 6 additions & 4 deletions mink-plugin/js/displayMinkUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,11 @@ function buildDrilldownTime (year, month, date) {
continue
}

mementos[memento].time = addZ(mementoDatetime.getHours()) + ':' +
addZ(mementoDatetime.getMinutes()) + ':' +
addZ(mementoDatetime.getSeconds())
const paddedHours = addZ(mementoDatetime.getHours())
const paddedMinutes = addZ(mementoDatetime.getMinutes())
const paddedSeconds = addZ(mementoDatetime.getSeconds())
mementos[memento].time = `${paddedHours}:${paddedMinutes}:${paddedSeconds}`

times.push(mementos[memento])
}

Expand Down Expand Up @@ -647,7 +649,7 @@ function bindDrilldown () {

function changeIconFor (id, src) {
const shadow = document.getElementById('minkWrapper').shadowRoot
shadow.querySelector('#' + id).setAttribute('src', src)
shadow.querySelector(`#{id}`).setAttribute('src', src)
}

chrome.runtime.onMessage.addListener(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"devDependencies": {
"codecov": "^3.1.0",
"standard": "^11.0",
"standard": "^17.1.0",
"stylelint": "^14.14.0",
"stylelint-config-standard": "^29.0.0",
"stylelint-use-logical": "^2.0.0"
Expand Down

0 comments on commit 54f963b

Please sign in to comment.