diff --git a/src/actions/pause.js b/src/actions/pause.js index 7475ce3580..db7a38294a 100644 --- a/src/actions/pause.js +++ b/src/actions/pause.js @@ -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 }) ); diff --git a/src/components/Editor/index.js b/src/components/Editor/index.js index 47714d32c4..540c98d6c8 100644 --- a/src/components/Editor/index.js +++ b/src/components/Editor/index.js @@ -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 => diff --git a/src/utils/sources-tree/tests/utils.spec.js b/src/utils/sources-tree/tests/utils.spec.js index d064b1e329..2fbd86c24b 100644 --- a/src/utils/sources-tree/tests/utils.spec.js +++ b/src/utils/sources-tree/tests/utils.spec.js @@ -212,5 +212,4 @@ describe("sources tree", () => { ).toBe(true); }); }); - }); diff --git a/src/utils/sources-tree/utils.js b/src/utils/sources-tree/utils.js index c91fbb8336..420984d13b 100644 --- a/src/utils/sources-tree/utils.js +++ b/src/utils/sources-tree/utils.js @@ -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) {