Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
flow fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bomsy committed Sep 26, 2017
1 parent eac02c5 commit 72a9691
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/actions/pause.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function paused(pauseInfo: Pause) {
if (hiddenBreakpointLocation) {
dispatch(removeBreakpoint(hiddenBreakpointLocation));
}
dispatch(evaluateExpressions(frame.id));
dispatch(evaluateExpressions());
dispatch(
selectSource(frame.location.sourceId, { line: frame.location.line })
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class Editor extends PureComponent {
codeMirror.on("gutterContextMenu", (cm, line, eventName, event) =>
this.onGutterContextMenu(event)
);

codeMirror.on("contextmenu", (cm, event) => this.openMenu(event, cm));
} else {
codeMirrorWrapper.addEventListener("contextmenu", event =>
Expand Down
1 change: 0 additions & 1 deletion src/utils/sources-tree/tests/utils.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,5 +212,4 @@ describe("sources tree", () => {
).toBe(true);
});
});

});
6 changes: 3 additions & 3 deletions src/utils/sources-tree/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ export function isDirectory(url: Object) {
}

export function isNotJavaScript(source: Object): boolean {
const parsedUrl = parse(source.url).pathname
const parsedUrl = parse(source.url).pathname;
if (!parsedUrl) {
return false;
}
const parsedExtension = parsedUrl.split('.').pop();
const parsedExtension = parsedUrl.split(".").pop();

return ["css", "svg", "png"].includes(parsedExtension)
return ["css", "svg", "png"].includes(parsedExtension);
}

export function isInvalidUrl(url: Object, source: Object) {
Expand Down

0 comments on commit 72a9691

Please sign in to comment.