Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import createStore from './createStore';
- import { adblockCheck } from './mps';
- export default routes => {
- const store = createStore({
- ...window.PRELOAD,
- isAdBlockEnabled: false
- });
- adblockCheck(isAdBlockEnabled => {
- window && window.console.log(`* * * * * Adblock Check Callback is: ${isAdBlockEnabled} * * * * *`);
- store.set('isAdBlockEnabled', isAdBlockEnabled);
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement