@monoui/vuejs 1.1.41 → 1.1.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monoui/vuejs",
3
- "version": "1.1.41",
3
+ "version": "1.1.43",
4
4
  "description": "This project will contain MonoFor UI Framework",
5
5
  "main": "./dist/main.js",
6
6
  "repository": "git@gitlab.com:monoui/vuejs.git",
@@ -495,13 +495,16 @@ export default {
495
495
  this.addPopStateListener();
496
496
  },
497
497
  async mounted() {
498
- this.loadHistory();
498
+ if (this.history)
499
+ this.loadHistory();
500
+
499
501
  if (this.autoLoad) {
500
502
  await this.getValues();
501
503
  }
502
504
  },
503
505
  methods: {
504
506
  addPopStateListener() {
507
+ if (this.history)
505
508
  window.addEventListener("popstate", this.popStateEvent);
506
509
  },
507
510
  removePopStateListener() {
@@ -922,6 +925,7 @@ export default {
922
925
  }
923
926
  },
924
927
  replaceHistory(state, storage = this.historyStorage) {
928
+ if (!this.history) return;
925
929
  if (storage === "query") {
926
930
  let url;
927
931
  if (state) url = state;