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