<template>
  <div class="gameContainer">
    <iframe
      :src="iframeUrl"
      id="__gameIframe__"
      ref="gameIframe"
      width="100%"
      height="0"
      style="position: absolute;left: 0;top:0;width: 100%;height: 100%;border: none"
    ></iframe>
  </div>
</template>

<script>
export default {
  name: "gameMain",
  data() {
    return {
      iframeUrl:
        window.location.port !== ""
          ? "http://172.16.14.9:3000/index.html"
          : "/game/index.html"
    };
  }
};
</script>

<style lang="scss">
</style>

