We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2683cdd commit bb68c50Copy full SHA for bb68c50
script-injection.php
@@ -129,6 +129,13 @@ function checkIframeConsent() {
129
<?php // Run the Cookie Consent at last. ?>
130
CookieConsent.run( airCookieSettings );
131
132
+
133
+ <?php // Backwards compatibility for old data-cc="c-settings" to new data-cc="show-preferencesModal" ?>
134
+ var oldSettingsLinks = document.querySelectorAll('[data-cc="c-settings"]');
135
+ for (var i = 0; i < oldSettingsLinks.length; i++) {
136
+ oldSettingsLinks[i].setAttribute('data-cc', 'show-preferencesModal');
137
+ }
138
139
<?php // Backwards compatibility for cc.loadScript API ?>
140
if ( typeof window.cc === 'undefined' ) {
141
window.cc = {
0 commit comments