mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-09-17 01:34:53 +00:00
Firefox 115 fixes
This commit is contained in:
@@ -1729,9 +1729,15 @@ class Channel extends SnowFlake {
|
||||
if (this.voice && this.localuser.voiceAllowed) {
|
||||
//this.localuser.joinVoice(this);
|
||||
}
|
||||
(document.getElementById("typebox") as HTMLDivElement).contentEditable = this.canMessage
|
||||
? "plaintext-only"
|
||||
: "false";
|
||||
try {
|
||||
(document.getElementById("typebox") as HTMLDivElement).contentEditable = this.canMessage
|
||||
? "plaintext-only"
|
||||
: "false";
|
||||
} catch {
|
||||
(document.getElementById("typebox") as HTMLDivElement).contentEditable = this.canMessage
|
||||
? "true"
|
||||
: "false";
|
||||
}
|
||||
(document.getElementById("upload") as HTMLElement).style.visibility = this.canMessage
|
||||
? "visible"
|
||||
: "hidden";
|
||||
|
||||
@@ -871,7 +871,11 @@ class Message extends SnowFlake {
|
||||
const search = document.createElement("div");
|
||||
search.classList.add("searchOptions", "flexttb");
|
||||
area.classList.add("editMessage");
|
||||
area.contentEditable = "plaintext-only";
|
||||
try {
|
||||
area.contentEditable = "plaintext-only";
|
||||
} catch {
|
||||
area.contentEditable = "true";
|
||||
}
|
||||
const md = new MarkDown(this.content.rawString, this.owner, {keep: true});
|
||||
area.append(md.makeHTML());
|
||||
area.addEventListener("keyup", (event) => {
|
||||
|
||||
@@ -2277,7 +2277,7 @@ span.instanceStatus {
|
||||
color: transparent;
|
||||
background-clip: text, border-box;
|
||||
position: relative;
|
||||
background-image: var(--userbg, linear-gradient(var(--primary-text)));
|
||||
background-image: var(--userbg, linear-gradient(var(--primary-text), var(--primary-text)));
|
||||
}
|
||||
.roleIcon {
|
||||
display: inline-block;
|
||||
|
||||
Reference in New Issue
Block a user