fix addTooltip params

pull/1/head
yann300 7 years ago
parent f55ebeb6d3
commit d969ea2630
  1. 2
      src/app/ui/copy-to-clipboard.js
  2. 2
      src/app/ui/tooltip.js

@ -29,7 +29,7 @@ module.exports = function copyToClipboard (getContent) {
}
} catch (e) {}
copy(copiableContent)
addTooltip(event, 'Successfully copied!')
addTooltip('Successfully copied!')
}
}
return copyIcon

@ -38,7 +38,7 @@ var css = csjs`
}
`
module.exports = function addTooltip (event, tooltipText) {
module.exports = function addTooltip (tooltipText) {
var tooltip = yo`<div class=${css.tooltip}>${tooltipText}</div>`
document.body.appendChild(tooltip)
setTimeout(function () {

Loading…
Cancel
Save