@highfivve/ad-tag 5.10.2 → 5.10.3
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/lib/ads/moli.js +11 -0
- package/lib/gen/packageJson.js +1 -1
- package/package.json +1 -1
package/lib/ads/moli.js
CHANGED
|
@@ -417,6 +417,17 @@ export const createMoliTag = (window) => {
|
|
|
417
417
|
.then(config => {
|
|
418
418
|
const validation = config.spa?.validateLocation ?? 'href';
|
|
419
419
|
if (!allowRequestAds(validation, href, window.location)) {
|
|
420
|
+
state = {
|
|
421
|
+
state: 'spa-finished',
|
|
422
|
+
config: config,
|
|
423
|
+
initialized,
|
|
424
|
+
modules,
|
|
425
|
+
href: window.location.href,
|
|
426
|
+
runtimeConfig: currentState.runtimeConfig,
|
|
427
|
+
nextRuntimeConfig: newEmptyRuntimeConfig(state.runtimeConfig, {
|
|
428
|
+
keepTargeting: true
|
|
429
|
+
})
|
|
430
|
+
};
|
|
420
431
|
return Promise.reject(`You are trying to refresh ads on the same page, which is not allowed. Using ${validation} for validation.`);
|
|
421
432
|
}
|
|
422
433
|
return adService.requestAds(config, nextRuntimeConfig).then(() => config);
|
package/lib/gen/packageJson.js
CHANGED