Skip to content

Add browser support.#5

Open
TheBITLINK wants to merge 1 commit intoscarfunk:masterfrom
TheBITLINK:patch-1
Open

Add browser support.#5
TheBITLINK wants to merge 1 commit intoscarfunk:masterfrom
TheBITLINK:patch-1

Conversation

@TheBITLINK
Copy link
Copy Markdown

This probably fixes #2

Comment thread index.js
else if(typeof window !== 'undefined')
{
// Set a global variable for browsers
window.numberZero = 0;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: Not sure about frontend JS conventions, but shouldn't this be NUMBER_ZERO?

@XVincentX
Copy link
Copy Markdown
Contributor

I would vote for an UMD module instead of rolling you own detection system.

@scarfunk
Copy link
Copy Markdown
Owner

im not sure this.
merge or not.

@XVincentX
Copy link
Copy Markdown
Contributor

@scarfunk We can have a more professional way to accomplish this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Doesn't work in browser!

4 participants