2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-10-19 14:46:58 +00:00

Added spoiler support to export.

This commit is contained in:
23rd
2021-12-23 00:28:27 +03:00
committed by John Preston
parent 1cca4d71bd
commit 4252066cf6
6 changed files with 26 additions and 1 deletions

View File

@@ -52,6 +52,12 @@ function ShowMentionName() {
return false;
}
function ShowSpoiler(target) {
if (target.classList.contains("hidden")) {
target.classList.toggle("hidden");
}
}
function AddClass(element, name) {
var current = element.className;
var expression = new RegExp('(^|\\s)' + name + '(\\s|$)', 'g');