1*a5fb1ba8SEvan Bacon"use strict";
2*a5fb1ba8SEvan BaconObject.defineProperty(exports, "__esModule", { value: true });
326ad19fcSEvan Baconfunction openFileInEditor(file, lineNumber) {
426ad19fcSEvan Bacon    if (process.env.NODE_ENV !== 'production') {
526ad19fcSEvan Bacon        // TODO: This is not a great URL since it now blocks users from accessing the `/open-stack-frame` url in their router
626ad19fcSEvan Bacon        // ideally it would be something like `/_devtools/open-stack-frame`.
726ad19fcSEvan Bacon        const baseUrl = window.location.protocol + '//' + window.location.host;
826ad19fcSEvan Bacon        fetch(baseUrl + '/open-stack-frame', {
926ad19fcSEvan Bacon            method: 'POST',
1026ad19fcSEvan Bacon            body: JSON.stringify({ file, lineNumber }),
1126ad19fcSEvan Bacon        });
1226ad19fcSEvan Bacon    }
1326ad19fcSEvan Bacon}
14*a5fb1ba8SEvan Baconexports.default = openFileInEditor;
1526ad19fcSEvan Bacon//# sourceMappingURL=index.js.map