diff --git a/css/glowingbear.css b/css/glowingbear.css index 2541ee4..c00e615 100644 --- a/css/glowingbear.css +++ b/css/glowingbear.css @@ -693,21 +693,6 @@ li.buffer.indent.private a { user-select: none; } -.emojione { - font-size: inherit; - height: 1em; - width: 1.1em; - min-height: 16px; - min-width: 16px; - display: inline-block; - margin: -.2ex .15em .2ex; - line-height: normal; - vertical-align: middle; -} -img.emojione { - width: auto; -} - #toast { position: fixed; left: 50%; diff --git a/electron.makefile b/electron.makefile index 966c2ca..adf67a0 100644 --- a/electron.makefile +++ b/electron.makefile @@ -9,7 +9,6 @@ bower: copylocal: find bower_components \( -name "*min.js" -o -name "*min.css" \) -exec cp {} 3rdparty \; cp -r bower_components/bootstrap/fonts . - cp bower_components/emojione/assets/sprites/emojione.sprites.svg 3rdparty # modify index.html to use local files uselocal: copylocal diff --git a/index.html b/index.html index 583528e..8bace4f 100644 --- a/index.html +++ b/index.html @@ -415,7 +415,7 @@ npm run build-electron-{windows, darwin, linux} <>
+ --> @@ -590,16 +590,6 @@ npm run build-electron-{windows, darwin, linux} -
  • -
    -
    - -
    -
    -
  • diff --git a/js/filters.js b/js/filters.js index 61f13c0..193abcf 100644 --- a/js/filters.js +++ b/js/filters.js @@ -184,24 +184,6 @@ weechat.filter('getBufferQuickKeys', function () { }; }); -// Emojifis the string using https://github.com/Ranks/emojione -weechat.filter('emojify', function() { - return function(text, enable_JS_Emoji) { - if (enable_JS_Emoji === true && window.emojione !== undefined) { - // Emoji live in the D800-DFFF surrogate plane; only bother passing - // this range to CPU-expensive unicodeToImage(); - var emojiRegex = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; - if (emojiRegex.test(text)) { - return emojione.unicodeToImage(text); - } else { - return(text); - } - } else { - return(text); - } - }; -}); - weechat.filter('latexmath', function() { return function(text, selector, enabled) { if (!enabled || typeof(katex) === "undefined") { diff --git a/js/glowingbear.js b/js/glowingbear.js index 04519bb..2f1909c 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -59,7 +59,6 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', 'fontsize': '14px', 'fontfamily': (utils.isMobileUi() ? 'sans-serif' : 'Inconsolata, Consolas, Monaco, Ubuntu Mono, monospace'), 'readlineBindings': false, - 'enableJSEmoji': !utils.isMobileUi(), 'enableMathjax': false, 'enableQuickKeys': true, 'customCSS': '', @@ -119,13 +118,6 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', (["localhost", "127.0.0.1", "::1"].indexOf(window.location.hostname) === -1) && !window.is_electron && !utils.isCordova(); - if (window.is_electron) { - // Use packaged emojione sprite in the electron app - emojione.imageType = 'svg'; - emojione.sprites = true; - emojione.imagePathSVGSprites = './3rdparty/emojione.sprites.svg'; - } - $rootScope.isWindowFocused = function() { if (typeof $scope.documentHidden === "undefined") { // Page Visibility API not supported, assume yes