<template>
<div></div>
</template>

<script>
export default {
  created() {
    window.addEventListener("resize", this.resize);
    window.addEventListener("scroll", this.scroll);

    this.resize();
  },
  methods: {
    resize() {
      this.$store.commit("resize", {
        x: document.body.clientWidth,
        y: window.innerHeight
      });
    },
    scroll() {
      this.$store.commit("scroll", window.pageYOffset);
    }
  }
};
</script>

<style></style>
