1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3function openFileInEditor(file, lineNumber) {
4    if (process.env.NODE_ENV !== 'production') {
5        // TODO: This is not a great URL since it now blocks users from accessing the `/open-stack-frame` url in their router
6        // ideally it would be something like `/_devtools/open-stack-frame`.
7        const baseUrl = window.location.protocol + '//' + window.location.host;
8        fetch(baseUrl + '/open-stack-frame', {
9            method: 'POST',
10            body: JSON.stringify({ file, lineNumber }),
11        });
12    }
13}
14exports.default = openFileInEditor;
15//# sourceMappingURL=index.js.map