Skip to content

Commit

Permalink
Add registerSelf noop for backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Brain committed Jan 10, 2017
1 parent 833629c commit dfc85a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ import { cleanup } from './lib/cleanup';
export let global = window[CONSTANTS.WINDOW_PROPS.POSTROBOT] = window[CONSTANTS.WINDOW_PROPS.POSTROBOT] || {};

global.clean = global.clean || cleanup(global);

// Backwards compatibility

global.registerSelf = () => {
// pass
};

0 comments on commit dfc85a8

Please # to comment.