mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added option to preview embedded element
This commit is contained in:
@@ -130,7 +130,11 @@ var Channel = {
|
||||
});
|
||||
|
||||
if(!client) {
|
||||
M.Modal.init(document.getElementById("embed"));
|
||||
M.Modal.init(document.getElementById("embed"), {
|
||||
onCloseStart: function() {
|
||||
document.querySelector(".embed-preview").innerHTML = "";
|
||||
}
|
||||
});
|
||||
} else {
|
||||
Helper.removeElement("#embed");
|
||||
Helper.removeElement(".embed-button-footer");
|
||||
|
||||
Reference in New Issue
Block a user