microsoft/vscode-react-native

Public

mirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
4bb0956ede5635069acf360dcc9c791802048661

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

js-patched/opn-main.js

16lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for details.
3
4'use strict';
5var opn = require('./index.js');
6
7module.exports = function(target, opts, cb) {
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
15 return opn(target, opts, cb);
16};
17