import loadJS from '../misc/loadJS.js';
import meta from '../../../../data/meta';

export default function meter(cb) {
	window.methode = {};

	// loadJS is in base-critical.hbs
	loadJS('https://www.bostonglobe.com/js/metercheck.js', function() {
		const hasPaywall = meta.paywall;
		const registrationWallVal = hasPaywall ? 'non-exempt' : 'exempt';

		window.bglobe.freeviewMeter.init(
			{pageId : 'meta.page_id' , registrationWall : registrationWallVal, webType : 'app', sectionPath : 'apps', debug:  false }
		);
	});
}
@@ -513,10 +513,22 @@
 %09);%0A
+%0A%09%09cb();%0A%0A
 %09%7D);%0A%7D
+%0A%0A

Add callback