microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
js-patched/opn-main.js
16lines · modeblame
b8ecee4ddigeff10 years ago | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT license. See LICENSE file in the project root for details. | |
| 3 | | |
1011f2a8Meena Kunnathur Balakrishnan10 years ago | 4 | 'use strict'; |
| 5 | var opn = require('./index.js'); | |
| 6 | | |
b031edc7digeff10 years ago | 7 | module.exports = function(target, opts, cb) { |
1011f2a8Meena Kunnathur Balakrishnan10 years ago | 8 | if (process.env.REACT_DEBUGGER) { |
| 9 | if (opts.app) { | |
| 10 | console.log("Debugger for React Native is configured. Skipping launch of " + opts.app); | |
| 11 | } | |
| 12 | return; | |
| 13 | } | |
| 14 | | |
b031edc7digeff10 years ago | 15 | return opn(target, opts, cb); |
1011f2a8Meena Kunnathur Balakrishnan10 years ago | 16 | }; |