Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Conversation

@cytodev
Copy link

@cytodev cytodev commented Mar 1, 2017

Addresses issue #2

src/index.js Outdated

// Load mock if in development mode
if (!lightdm && process.env.NODE_ENV === 'development') {
if (!(lightdm in window) && process.env.NODE_ENV === 'development') {

Choose a reason for hiding this comment

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

lightdm should be a string here. !("lightdm" in window)

src/index.js Outdated
}

if (!lightdm || !lightdm.languages) {
if (!(lightdm in window) || !(typeof lightdm.languages === "object")) {

Choose a reason for hiding this comment

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

same here

src/index.js Outdated
const interval = setInterval(() => {

if (lightdm && lightdm.languages) {
if (lightdm in window && typeof lightdm.languages === "object") {

Choose a reason for hiding this comment

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

and here

Thanks francoiscote
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants