@massimo-cassandro/minimo 0.12.8 → 0.12.10
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
|
@@ -89,7 +89,7 @@ import caretRightIcon from '../../icons/caret-right.svg?inline';
|
|
|
89
89
|
* colonna con `_renderNullAs`.
|
|
90
90
|
* Default: `\u2014` (em dash)
|
|
91
91
|
*
|
|
92
|
-
* @param {string[]}
|
|
92
|
+
* @param {string[]} referrers Elenco di percorsi URL da cui, se si proviene,
|
|
93
93
|
* la pagina corrente viene ripristinata dal cookie
|
|
94
94
|
* di sessione `sd-pag`. Se il referrer non è tra
|
|
95
95
|
* quelli indicati, il cookie viene eliminato.
|
|
@@ -386,11 +386,11 @@ class SimpleDatatableAdapter extends HTMLElement {
|
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
/**
|
|
389
|
-
* Restituisce true se il referrer corrisponde a uno dei percorsi in `
|
|
389
|
+
* Restituisce true se il referrer corrisponde a uno dei percorsi in `referrers`.
|
|
390
390
|
* Il confronto avviene su `pathname` per ignorare query string e hash.
|
|
391
391
|
*/
|
|
392
392
|
_isReferrerAllowed() {
|
|
393
|
-
const allowed = this._getParam('
|
|
393
|
+
const allowed = this._getParam('referrers', []);
|
|
394
394
|
if (!allowed.length || !document.referrer) return false;
|
|
395
395
|
const referrerPath = new URL(document.referrer).pathname;
|
|
396
396
|
return allowed.some(path => referrerPath === path);
|