@massimo-cassandro/minimo 0.12.13 → 0.12.14
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
|
@@ -401,16 +401,14 @@ class SimpleDatatableAdapter extends HTMLElement {
|
|
|
401
401
|
return false;
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
|
|
405
404
|
if (!Array.isArray(allowed) || !allowed.length || !document.referrer) {
|
|
406
405
|
return false;
|
|
407
406
|
}
|
|
408
|
-
|
|
409
407
|
const referrerPath = new URL(document.referrer).pathname;
|
|
410
408
|
|
|
411
409
|
// Ritorna true se il path del referrer è contenuto in una delle stringhe di 'allowed'
|
|
412
410
|
return allowed.some(allowedUrl =>
|
|
413
|
-
typeof allowedUrl === 'string' &&
|
|
411
|
+
(typeof allowedUrl === 'string') && (referrerPath.includes(allowedUrl))
|
|
414
412
|
);
|
|
415
413
|
}
|
|
416
414
|
|