aboutsummaryrefslogtreecommitdiff
path: root/src/main/assets/scripts.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-10-23 12:20:37 +0300
committerGravatar Vitaly Takmazov2019-10-23 12:20:37 +0300
commit40c7ecc9d502bd73f51a0b944214ad0c8e56da1f (patch)
tree715ac1ec48faefe72bd821aa418de5b790bda3d5 /src/main/assets/scripts.js
parente728f7bb5cd0fc644b446f3343d368f7b6ea37b4 (diff)
Load icons from external SVG
Diffstat (limited to 'src/main/assets/scripts.js')
-rw-r--r--src/main/assets/scripts.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/assets/scripts.js b/src/main/assets/scripts.js
index e7396c31..e181de7e 100644
--- a/src/main/assets/scripts.js
+++ b/src/main/assets/scripts.js
@@ -3,6 +3,8 @@ require('classlist.js');
require('url-polyfill');
require('formdata-polyfill');
import { embedLinksToX, embedAll, format } from './embed';
+import renderIcons from './icon';
+import svg4everybody from 'svg4everybody';
if (!('remove' in Element.prototype)) { // Firefox <23
Element.prototype.remove = function() {
@@ -642,7 +644,8 @@ ready(function() {
document.querySelectorAll('textarea').forEach((ta) => {
autosize(ta);
});
-
+ svg4everybody();
+ renderIcons();
var insertPMButtons = function(e) {
e.target.classList.add('narrowpm');
e.target.parentNode.insertAdjacentHTML('afterend', '<input type="submit" value="OK"/>');