Skip to content
This repository has been archived by the owner. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix runInBrowser
  • Loading branch information
Lauren McCarthy committed Jan 22, 2016
commit f621c8e39f429ee4027cf0bf6b84baebae220752
4 changes: 2 additions & 2 deletions app/modes/p5/p5-mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ module.exports = {
gui.App.clearCache();

if (this.outputWindow) {
if ((String(this.settings.runInBrowser) === "true")) {
if ((String(self.settings.runInBrowser) == "true")) {
gui.Shell.openExternal(url);
} else {
this.outputWindow.reloadIgnoringCache();
Expand All @@ -124,7 +124,7 @@ module.exports = {
}
} else {
startServer(this.projectPath, this, function(url) {
if ((String(this.settings.runInBrowser) === "true")) {
if ((String(self.settings.runInBrowser) === "true")) {
gui.Shell.openExternal(url);
} else {
fs.readFile(Path.join(self.projectPath, 'sketch.js'), function(err, data){
Expand Down