Skip to content

Instantly share code, notes, and snippets.

Victor Doss vidoss

Block or report user

Report or block vidoss

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:d18ada55ef8d7c4929bb
// make a "base" component
const FakeButton = (props) => (
<div
{...props}
style={{
cursor: 'default',
border: '1px solid',
borderRadius: '3px',
...props.style
}}
@neilj
neilj / window-controller.js
Last active Aug 6, 2019
Cross-tab window controller
View window-controller.js
function WindowController () {
this.id = 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.