Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Brackets should recognize Linux as a platform #1983

Merged
merged 2 commits into from
Oct 30, 2012
Merged

Brackets should recognize Linux as a platform #1983

merged 2 commits into from
Oct 30, 2012

Conversation

pritambaral
Copy link
Contributor

Absolutely neccessary for Live Development to function, as an extra /(forward-
slash) is added when brackets.platform="win"

Absolutely neccessary for Live Development to function, as an extra /(forward-
slash) is added when brackets.platform="win"
@ghost ghost assigned jasonsanjose Oct 30, 2012
@jasonsanjose
Copy link
Member

Reviewing

@jasonsanjose
Copy link
Member

Thanks @pritambaral. It doesn't look like you've signed our CLA. Here's the link http://dev.brackets.io/brackets-contributor-license-agreement.html and more info here https://github.com/adobe/brackets/wiki/How-to-Hack-on-Brackets. Please comment here once you you've submitted the CLA.

@@ -69,7 +69,12 @@ define(function (require, exports, module) {

global.brackets.inBrowser = !global.brackets.hasOwnProperty("fs");

global.brackets.platform = (global.navigator.platform === "MacIntel" || global.navigator.platform === "MacPPC") ? "mac" : "win";
if (global.navigator.platform === "MacIntel" || global.navigator.platform === "MacPPC")
Copy link
Member

Choose a reason for hiding this comment

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

Please add curly braces to each block. Also use 4 spaces for indentation.

@pritambaral
Copy link
Contributor Author

SIgned. Do include the typo commit too. My bad. :)

@pritambaral
Copy link
Contributor Author

All done.

@@ -69,7 +69,18 @@ define(function (require, exports, module) {

global.brackets.inBrowser = !global.brackets.hasOwnProperty("fs");

global.brackets.platform = (global.navigator.platform === "MacIntel" || global.navigator.platform === "MacPPC") ? "mac" : "win";
if (global.navigator.platform === "MacIntel" || global.navigator.platform === "MacPPC")
{
Copy link
Member

Choose a reason for hiding this comment

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

Sorry. I should have been more clear. Our open curly braces go on the prior line, not on a new line. Thanks.

@jasonsanjose
Copy link
Member

Done with 2nd pass.

@pritambaral
Copy link
Contributor Author

👍

@pritambaral
Copy link
Contributor Author

Sorry for all this mess. I should have read the wiki and guidelines first.

global.brackets.platform = (global.navigator.platform === "MacIntel" || global.navigator.platform === "MacPPC") ? "mac" : "win";
if (global.navigator.platform === "MacIntel" || global.navigator.platform === "MacPPC") {
global.brackets.platform = "mac";
}
Copy link
Member

Choose a reason for hiding this comment

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

Sorry, I missed this. I should have synced and ran JSLint. else if should be on the same line as the close brace.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. :)

@jasonsanjose
Copy link
Member

Sorry to miss those other JSLint errors. I should have seen those last time.

jasonsanjose added a commit that referenced this pull request Oct 30, 2012
Brackets should recognize Linux as a platform
@jasonsanjose jasonsanjose merged commit bea752a into adobe:master Oct 30, 2012
@jasonsanjose
Copy link
Member

Merged.

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