File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 3
3
"cmpId" : 15 ,
4
4
"maxCookieLifespanDays" : 390 ,
5
5
"cmpGlobalName" : " __cmp" ,
6
- "portalUrl " : " https://cdn.digitrust.mgr.consensu.org/1/portal.html" ,
6
+ "globalConsentLocation " : " https://cdn.digitrust.mgr.consensu.org/1/portal.html" ,
7
7
"globalVendorListLocation" : " https://vendorlist.consensu.org/vendorlist.json" ,
8
8
"countryCodes" : [
9
9
" GB" ,
Original file line number Diff line number Diff line change 1
1
import config from "./config" ;
2
2
import Promise from "promise-polyfill" ;
3
+ const metadata = require ( "../../metadata.json" ) ;
3
4
4
5
const PORTAL_LOAD_TIMEOUT_MILLISECONDS = 5000 ;
5
6
const PORTAL_COMMAND_TIMEOUT_MILLISECONDS = 2000 ;
@@ -23,7 +24,7 @@ function openGlobalVendorPortal() {
23
24
// Only ever create a single iframe
24
25
if ( ! globalVendorPortal ) {
25
26
globalVendorPortal = new Promise ( ( resolve , reject ) => {
26
- const url = config . globalConsentLocation ;
27
+ const url = ( config . globalConsentLocation || metadata . globalConsentLocation ) ;
27
28
const iframe = document . createElement ( 'iframe' ) ;
28
29
iframe . setAttribute ( 'style' , 'width:1px;height:1px;position:absolute;left:-99px;top:-99px;' ) ;
29
30
iframe . setAttribute ( 'src' , url ) ;
You can’t perform that action at this time.
0 commit comments