Update DiscordPreview.js
This commit is contained in:
parent
8a811a08f8
commit
dbfe75e8fc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue