Skip to content

Commit

Permalink
Fix Chakra debugging engine crash outside of Windows Desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
tylergibson committed Jan 7, 2016
1 parent af1e612 commit 5c05545
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
using ReactNative.Bridge;
using System;
using System.Diagnostics;
#if DEBUG
using Windows.System.Profile;
#endif

namespace ReactNative.Hosting.Bridge
{
Expand Down Expand Up @@ -143,7 +146,11 @@ private void InitializeChakra()

#if DEBUG
// Start debugging.
JavaScriptContext.StartDebugging();
if (AnalyticsInfo.VersionInfo.DeviceFamily == "Windows.Desktop")
{
JavaScriptContext.StartDebugging();
}

#endif

var consolePropertyId = default(JavaScriptPropertyId);
Expand Down

0 comments on commit 5c05545

Please sign in to comment.