Skip to content

Instantly share code, notes, and snippets.


Victor Doss vidoss

View GitHub Profile
View gist:d18ada55ef8d7c4929bb
// make a "base" component
const FakeButton = (props) => (
cursor: 'default',
border: '1px solid',
borderRadius: '3px',
neilj / window-controller.js
Last active Aug 20, 2020
Cross-tab window controller
View window-controller.js
function WindowController () { = Math.random();
this.isMaster = false;
this.others = {};
window.addEventListener( 'storage', this, false );
window.addEventListener( 'unload', this, false );
this.broadcast( 'hello' );
You can’t perform that action at this time.