Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/ratchet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Mulvey <king.feruke@gmail.com>2015-01-07 15:49:02 +0300
committerKevin Mulvey <king.feruke@gmail.com>2015-01-07 15:49:02 +0300
commita2691c2ddc8db4f56d46a25893a87f60b2eaad4f (patch)
tree38e3e651aedab0949b40f2f87ff2456e08f34052
parent9bd27e0d83f7c2449236f21ddc2e71b49ae7f90e (diff)
use || rather than ternary
-rw-r--r--js/push.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/push.js b/js/push.js
index 07bf70c..6039bb7 100644
--- a/js/push.js
+++ b/js/push.js
@@ -464,7 +464,7 @@
head.innerHTML = responseText;
}
- data.title = head.querySelector('title') ? head.querySelector('title') : document.querySelector('title');
+ data.title = head.querySelector('title') || document.querySelector('title');
var text = 'innerText' in data.title ? 'innerText' : 'textContent';
data.title = data.title && data.title[text].trim();