cec-nuxt-lib 0.11.11 → 0.11.13

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cec-nuxt-lib",
3
3
  "configKey": "cec-nuxt-lib",
4
- "version": "0.11.11",
4
+ "version": "0.11.13",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
@@ -92,13 +92,18 @@ const doSearch = async () => {
92
92
  }
93
93
  };
94
94
  onMounted(() => {
95
- setTimeout(() => {
95
+ let i = 0;
96
+ let interval = setInterval(() => {
97
+ i += 1;
96
98
  try {
97
99
  CookieControl.load(config);
100
+ clearInterval(interval);
98
101
  } catch (err) {
99
- console.log("No cookie control");
102
+ if (i > 50) {
103
+ clearInterval(interval);
104
+ }
100
105
  }
101
- }, 50);
106
+ }, 10);
102
107
  let accordions = document.getElementsByClassName("access-acc-container");
103
108
  if (accordions.length) {
104
109
  let hash = window.location.hash;
@@ -213,11 +218,11 @@ onMounted(() => {
213
218
  let display2 = document.getElementById(id + "_display");
214
219
  let breadcrumb = document.getElementById(`${id}_breadcrumb`);
215
220
  breadcrumb.innerHTML = "";
216
- qTop.stack.forEach((el, i) => {
221
+ qTop.stack.forEach((el, i2) => {
217
222
  let li = document.createElement("LI");
218
223
  li.classList.add("breadcrumb-item");
219
224
  li.innerHTML = qTop.question[el].question;
220
- if (i !== qTop.stack.length - 1 || display2.innerText.length) {
225
+ if (i2 !== qTop.stack.length - 1 || display2.innerText.length) {
221
226
  li.classList.add("fakeLink");
222
227
  li.onclick = () => goto(id, el, false);
223
228
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.11.11",
2
+ "version": "0.11.13",
3
3
  "name": "cec-nuxt-lib",
4
4
  "description": "Nuxt components and assets",
5
5
  "license": "MIT",