Skip to content

Commit

Permalink
fixes adobe#68
Browse files Browse the repository at this point in the history
  • Loading branch information
zaggino committed Sep 8, 2016
1 parent 394cfdd commit d973ac9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/appshell/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-env node */

import * as _ from "lodash";
import { remote } from "electron";

Expand All @@ -11,4 +13,4 @@ delete fs.delete;
fs.ensureDir(app.getExtensionsFolder());

// this needs to be node-require style export
module.exports = { app, fs };
module.exports = { app, fs, inElectron: true };
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ gulp.task('copy-src-dist', (_cb) => {
});
});

gulp.task('watch', () => {
gulp.task('watch', ['copy-src-dist'], () => {
BASE_DIRS.forEach((srcDir, idx) => {
watch(`${srcDir}/**/!(*.ts|*.tsx)`, file => {
copyJs(file.path, srcDir, DIST_DIRS[idx]);
Expand Down
2 changes: 1 addition & 1 deletion src/document/DocumentCommandHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1585,7 +1585,7 @@ define(function (require, exports, module) {
function _disableCache() {
var result = new $.Deferred();

if (brackets.inBrowser) {
if (brackets.inBrowser || brackets.inElectron) {
result.resolve();
} else {
var port = brackets.app.getRemoteDebuggingPort ? brackets.app.getRemoteDebuggingPort() : 9234;
Expand Down

0 comments on commit d973ac9

Please sign in to comment.