mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-28 15:27:43 +00:00
3.5.194. Rename controller:layout and controller:login to be services. Rewrite styles to better work with the new chat DOM layout. Stop exposing tokens to the built-in chat templates to avoid rendering errors and improve performance. Schedule scrolling events with requestAnimationFrame. Very initial bits support that doesn't actually do anything yet. Fix SRL race information.
This commit is contained in:
parent
57a95986d3
commit
ee21ab28c3
21 changed files with 218 additions and 94 deletions
|
@ -9,6 +9,10 @@ var sanitize_el = document.createElement('span'),
|
|||
return sanitize_el.innerHTML;
|
||||
},
|
||||
|
||||
unquote_attr = function(msg) {
|
||||
return msg.replace(/&/g, '&').replace(/"/g, '"').replace(/'/g, "'").replace(/>/g, '>').replace(/</g, '<');
|
||||
},
|
||||
|
||||
escape_regex = RegExp.escape || function(str) {
|
||||
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
||||
},
|
||||
|
@ -388,6 +392,7 @@ module.exports = FFZ.utils = {
|
|||
},
|
||||
|
||||
sanitize: sanitize,
|
||||
unquote_attr: unquote_attr,
|
||||
quote_attr: quote_attr,
|
||||
|
||||
date_string: function(date) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue