select background colour depending on current theme

This commit is contained in:
Mute 2022-07-06 21:56:18 +00:00
parent 1d8e3b100b
commit 7611721459

View File

@ -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}.` if (options.dot && result.match(/[\w]$/)) result = `${result}.`
return(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()}`) }, report: function(x) { this.inform(`Error: ${x.toString()}`) },
id2char: function(id) { return(window.ChatRoomCharacter.find( c => c.MemberNumber === Number.parseInt(id) )) }, id2char: function(id) { return(window.ChatRoomCharacter.find( c => c.MemberNumber === Number.parseInt(id) )) },
donate_data: function(recipient) { donate_data: function(recipient) {