fix addTooltip params

pull/3094/head
yann300 7 years ago
parent 49b42ee5dd
commit 9d2a8006e5
  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