Refactored MCS page.

This commit is contained in:
Harrison Deng 2022-05-15 17:51:05 -05:00
parent 7ad58ec77f
commit 82f593a582

View File

@ -63,7 +63,7 @@
src="https://ent.sys.reslate.xyz/rsemcs/dynmap/"
class="map"
allowtransparency="true"
@load="iframeLoaded"
@load="dynmapLoaded"
>
<p>Your browser does not support iframes. Visit <a href="https://ent.sys.reslate.xyz/rsemcs/dynmap/">the full dynmap page here</a></p>
</iframe>
@ -111,7 +111,7 @@ export default {
this.lastUpdate = info.last_updated;
},
methods: {
iframeLoaded() {
dynmapLoaded() {
let iframe = this.$refs.dynmap;
let iframeDocument = iframe.contentDocument || iframe.contentWindow.document;
iframeDocument.body.style.backgroundColor = "transparent";