@@ -7,29 +7,27 @@ import * as config from "./lib/config.js";
77import * as story from "./lib/story.js" ;
88
99function distributeZones ( locker ) {
10- const zl = locker . getYozonsLocker ( "zones" ) ;
11-
1210 // Setup
1311 zones . setLocker ( locker ) ;
1412
1513 // Configs
16- if ( ! zl . config ) {
17- zl . config = {
14+ if ( ! locker . config ) {
15+ locker . config = {
1816 homepage : "/static/hi/zones/homepage.json" ,
1917 section : "/static/hi/zones/section.json" ,
2018 story : "/static/hi/zones/story.json"
2119 }
2220 }
2321
2422 // Add the communication bridge
25- zl . changes = zones . changes ;
23+ locker . getYozonsLocker ( "zones" ) . changes = zones . changes ;
2624
2725 // Give the performance team a promise
2826 return new Promise ( ( resolve , reject ) => {
2927 locker . executeWhenDOMReady ( async ( ) => {
3028 switch ( locker . pageType ) {
3129 case "story" :
32- await config . load ( zl . config . story ) ;
30+ await config . load ( locker . config . story ) ;
3331
3432 // Change the cadence
3533 const subscriber = locker . user . isSubscriber ( ) ;
@@ -40,10 +38,10 @@ function distributeZones(locker) {
4038 story . cleanup ( ) ;
4139 break ;
4240 case "homepage" :
43- await config . load ( zl . config . homepage ) ;
41+ await config . load ( locker . config . homepage ) ;
4442 break ;
4543 case "sectfront" :
46- await config . load ( zl . config . section ) ;
44+ await config . load ( locker . config . section ) ;
4745 break ;
4846 default :
4947 reject ( "not a matching page type" ) ;
0 commit comments