aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/assets/scripts.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-07 00:28:35 +0300
committerGravatar Vitaly Takmazov2018-11-07 00:28:35 +0300
commit53c6442f752b2ed51e3c9b8b9eed235ffba8d75e (patch)
tree602fd5a94af54946632a5fe01dd056282773d8e9 /juick-server/src/main/assets/scripts.js
parenteeb7bf300b4c7277063f06504284baed55649ab9 (diff)
www: babel-polyfill
Diffstat (limited to 'juick-server/src/main/assets/scripts.js')
-rw-r--r--juick-server/src/main/assets/scripts.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/juick-server/src/main/assets/scripts.js b/juick-server/src/main/assets/scripts.js
index 697919bd..e757261f 100644
--- a/juick-server/src/main/assets/scripts.js
+++ b/juick-server/src/main/assets/scripts.js
@@ -3,7 +3,7 @@ require('element-closest');
require('classlist.js');
require('url-search-params-polyfill');
require('formdata-polyfill');
-import * as killy from './embed';
+import { embedLinksToX, embedAll, format } from './embed';
if (!('remove' in Element.prototype)) { // Firefox <23
Element.prototype.remove = function() {
@@ -181,7 +181,7 @@ function wsIncomingReply(msg) {
<a href="/m/${msg.mid}#${msg.rid}" title="${msg.timestamp}GMT">${msg.timestamp}</a>
</div>
</div>
- <div class="msg-txt">${killy.format(msg.body, msg.mid, false)}</div>${photoDiv}
+ <div class="msg-txt">${format(msg.body, msg.mid, false)}</div>${photoDiv}
<div class="msg-links">${msgNum} &middot; <a class="msg-reply-link" href="#">${i18n('message.reply')}</a></div>
<div class="msg-comment-target msg-comment-hidden"></div>
</div>`;
@@ -197,7 +197,7 @@ function wsIncomingReply(msg) {
e.preventDefault();
});
- killy.embedLinksToX(li.querySelector('.msg-cont'), '.msg-links', '.msg-txt a');
+ embedLinksToX(li.querySelector('.msg-cont'), '.msg-links', '.msg-txt a');
document.getElementById('replies').appendChild(li);
@@ -867,7 +867,7 @@ ready(function() {
});
initES();
- killy.embedAll();
+ embedAll();
var elSelector = 'header',
elClassHidden = 'header--hidden',
elClassBackground = 'header--background',