Update DiscordPreview.js

This commit is contained in:
Mirco Wittrien 2019-10-09 14:46:45 +02:00
parent 8a811a08f8
commit dbfe75e8fc
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ window.onmessage = function (e) {
if (e.data.classes) window.DiscordClasses = JSON.parse(e.data.classes);
if (e.data.classmodules) window.DiscordClassModules = JSON.parse(e.data.classmodules);
if (window.disCN != undefined && window.DiscordClasses != undefined && window.DiscordClassModules != undefined)) {
var oldhtml = h.split('REPLACE_CLASS_');
var oldhtml = document.body.innerHTML.split("REPLACE_CLASS_");
var newhtml = oldhtml.shift();
for (let html of oldhtml) {
let reg = /([A-z_]+)(.+)/.exec(html);