mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-28 15:27:43 +00:00
3.5.305. Dark CSS tweaks. Add Twitch Prime support. Better channel redesign support. Fix hosting bugs. Fix Emoticon menu bugs. Add github buttons to About page.
This commit is contained in:
parent
8280b93c97
commit
7d35b5c8c3
14 changed files with 369 additions and 107 deletions
11
src/utils.js
11
src/utils.js
|
@ -328,6 +328,17 @@ module.exports = FFZ.utils = {
|
|||
|
||||
// Other Stuff
|
||||
|
||||
process_int: function(default_value) {
|
||||
return function(val) {
|
||||
if ( typeof val === "string" ) {
|
||||
val = parseInt(val);
|
||||
if ( isNaN(val) || ! isFinite(val) )
|
||||
val = default_value;
|
||||
}
|
||||
return val;
|
||||
}
|
||||
},
|
||||
|
||||
build_srcset: build_srcset,
|
||||
/*build_tooltip: build_tooltip,
|
||||
load_emote_data: load_emote_data,*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue