removed double implementation

pull/1/head
LianaHus 6 years ago
parent 6284fb8b32
commit 8445cd98e3
  1. 3
      src/app/ui/tooltip.js

@ -25,6 +25,7 @@ class Toaster {
} }
render (tooltipText, actionElement, opts) { render (tooltipText, actionElement, opts) {
opts = defaultOptions(opts) opts = defaultOptions(opts)
<<<<<<< HEAD
<<<<<<< HEAD <<<<<<< HEAD
let canShorten = true let canShorten = true
if (tooltipText instanceof Element) { if (tooltipText instanceof Element) {
@ -42,6 +43,8 @@ class Toaster {
if (typeof (tooltipText) === 'object' && tooltipText.message !== undefined) { if (typeof (tooltipText) === 'object' && tooltipText.message !== undefined) {
tooltipText = tooltipText.message tooltipText = tooltipText.message
} }
=======
>>>>>>> 9211c21f... removed double implementation
if (typeof tooltipText === 'object') { if (typeof tooltipText === 'object') {
if (tooltipText.message) { if (tooltipText.message) {

Loading…
Cancel
Save