@opentabs-dev/opentabs-plugin-priceline 0.0.82 → 0.0.84
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/adapter.iife.js +20 -16
- package/dist/adapter.iife.js.map +2 -2
- package/dist/tools.json +1 -1
- package/package.json +11 -4
package/dist/adapter.iife.js
CHANGED
|
@@ -348,10 +348,26 @@
|
|
|
348
348
|
ot.log = log;
|
|
349
349
|
|
|
350
350
|
// node_modules/@opentabs-dev/plugin-sdk/dist/storage.js
|
|
351
|
+
var withIframeFallback = (fn) => {
|
|
352
|
+
try {
|
|
353
|
+
const iframe = document.createElement("iframe");
|
|
354
|
+
iframe.style.display = "none";
|
|
355
|
+
document.body.appendChild(iframe);
|
|
356
|
+
try {
|
|
357
|
+
const iframeStorage = iframe.contentWindow?.localStorage;
|
|
358
|
+
return iframeStorage ? fn(iframeStorage) : null;
|
|
359
|
+
} finally {
|
|
360
|
+
document.body.removeChild(iframe);
|
|
361
|
+
}
|
|
362
|
+
} catch {
|
|
363
|
+
return null;
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
var getWindowLocalStorage = () => window.localStorage;
|
|
351
367
|
var getLocalStorage = (key) => {
|
|
352
368
|
let storage;
|
|
353
369
|
try {
|
|
354
|
-
storage =
|
|
370
|
+
storage = getWindowLocalStorage();
|
|
355
371
|
} catch {
|
|
356
372
|
return null;
|
|
357
373
|
}
|
|
@@ -362,19 +378,7 @@
|
|
|
362
378
|
return null;
|
|
363
379
|
}
|
|
364
380
|
}
|
|
365
|
-
|
|
366
|
-
const iframe = document.createElement("iframe");
|
|
367
|
-
iframe.style.display = "none";
|
|
368
|
-
document.body.appendChild(iframe);
|
|
369
|
-
try {
|
|
370
|
-
const iframeStorage = iframe.contentWindow?.localStorage;
|
|
371
|
-
return iframeStorage ? iframeStorage.getItem(key) : null;
|
|
372
|
-
} finally {
|
|
373
|
-
document.body.removeChild(iframe);
|
|
374
|
-
}
|
|
375
|
-
} catch {
|
|
376
|
-
return null;
|
|
377
|
-
}
|
|
381
|
+
return withIframeFallback((s) => s.getItem(key));
|
|
378
382
|
};
|
|
379
383
|
var getCookie = (name) => {
|
|
380
384
|
try {
|
|
@@ -15002,7 +15006,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15002
15006
|
};
|
|
15003
15007
|
var src_default = new PricelinePlugin();
|
|
15004
15008
|
|
|
15005
|
-
// dist/
|
|
15009
|
+
// dist/_adapter_entry_7e4ffad8-edec-4917-acf5-5aaf4f42287a.ts
|
|
15006
15010
|
if (!globalThis.__openTabs) {
|
|
15007
15011
|
globalThis.__openTabs = {};
|
|
15008
15012
|
} else {
|
|
@@ -15218,5 +15222,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15218
15222
|
};
|
|
15219
15223
|
delete src_default.onDeactivate;
|
|
15220
15224
|
}
|
|
15221
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["priceline"]){var a=o.adapters["priceline"];a.__adapterHash="
|
|
15225
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["priceline"]){var a=o.adapters["priceline"];a.__adapterHash="9d7b6b257a83566a16c894a7929d7d19cd3fc475a71390c492449d930cc610f8";if(a.tools&&Array.isArray(a.tools)){for(var i=0;i<a.tools.length;i++){Object.freeze(a.tools[i]);}Object.freeze(a.tools);}Object.freeze(a);Object.defineProperty(o.adapters,"priceline",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
|
|
15222
15226
|
//# sourceMappingURL=adapter.iife.js.map
|