@sedoo/unidoo 0.1.17 → 0.1.19

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": "@sedoo/unidoo",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "npm run build:unidoo && npm run build:auth",
@@ -108,19 +108,14 @@ export default {
108
108
  }
109
109
  },
110
110
  created() {
111
- // Check if user has visited before
112
- if (typeof localStorage !== 'undefined') {
113
- // Access and use localStorage here
114
- if (!localStorage.getItem('visitedBefore') && this.disablePopup.toLowerCase() !== 'true') {
111
+ // Show the toast notification if the disablePopup prop is not set to true.
112
+ if (this.disablePopup.toLowerCase() !== 'true') {
115
113
  this.showToast = true;
116
- localStorage.setItem('visitedBefore', 'true'); // Set flag indicating user has visited
117
- }
118
- } else {
119
- console.log('localStorage is not available.');
120
114
  }
121
115
  },
122
116
  mounted() {
123
117
  this.initMap();
118
+ //
124
119
  if (!this.disablePopup !== 'true') {
125
120
  console.log('axios.then : initPopup()');
126
121
  this.initPopup();
@@ -141,8 +136,10 @@ export default {
141
136
  methods: {
142
137
  loadFeatures() {
143
138
 
144
- // Close the popup at the start of loading new features.
145
- this.closePopup();
139
+ if (this.popupOverlay) {
140
+ // Close the popup if it is already open before loading new features.
141
+ this.closePopup();
142
+ }
146
143
 
147
144
  this.axios.get(this.serviceUrl)
148
145
  .then(res => {