select background colour depending on current theme
This commit is contained in:
parent
1d8e3b100b
commit
7611721459
|
@ -210,7 +210,8 @@ var bcModSdk=function(){"use strict";const o="1.0.2";function e(o){alert("Mod ER
|
|||
if (options.dot && result.match(/[\w]$/)) result = `${result}.`
|
||||
return(result)
|
||||
},
|
||||
inform: function(html) { window.ChatRoomSendLocal(`<div style="background:${this.RGB_MUTE}">${html}</div>`, 60000) },
|
||||
bg_colour: function() { return(document.getElementById("TextAreaChatLog").dataset.colortheme.startsWith("light") ? this.RGB_POLLY : this.RGB_MUTE) },
|
||||
inform: function(html) { window.ChatRoomSendLocal(`<div style="background:${this.bg_colour()}">${html}</div>`, 60000) },
|
||||
report: function(x) { this.inform(`Error: ${x.toString()}`) },
|
||||
id2char: function(id) { return(window.ChatRoomCharacter.find( c => c.MemberNumber === Number.parseInt(id) )) },
|
||||
donate_data: function(recipient) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user