microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
f521686613075eb4a9cebc89a01cbcf289ec258f

Branches

Tags

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

Clone

HTTPS

Download ZIP

js-patched/open-main.js

16lines · modepreview

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.

'use strict';
var open = require('./index.js');

module.exports = function(target, opts) {
    if (process.env.REACT_DEBUGGER) {
        if (opts.app) {
            console.log("Debugger for React Native is configured. Skipping launch of " + opts.app);
        }
        return;
    }

    return open(target, opts);
};