Commit 2d7a1bb2 authored by Dan Abramov's avatar Dan Abramov Committed by GitHub
Browse files

Minor tweaks for crash overlay (#2101)

parent 3a527f2a
3 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk,!5717Automatically extract project file structure from build bundle file
Showing with 2 additions and 7 deletions
+2 -7
......@@ -9,14 +9,10 @@
'use strict';
function _interopDefault(ex) {
return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex;
}
var stackFrameParser = require('stack-frame-parser');
var stackFrameMapper = require('stack-frame-mapper');
var stackFrameUnmapper = require('stack-frame-unmapper');
var codeFrame = _interopDefault(require('babel-code-frame'));
var codeFrame = require('babel-code-frame');
var ansiHTML = require('./ansiHTML');
var boundErrorHandler = null;
......@@ -157,7 +153,6 @@ function unregisterStackTraceLimit() {
}
var recorded = [];
var errorsConsumed = 0;
function consume(error) {
......@@ -223,6 +218,7 @@ var iframeStyle = {
right: '1em',
width: 'calc(100% - 2em)',
height: 'calc(100% - 2em)',
border: 'none',
'border-radius': '3px',
'box-shadow': '0 0 6px 0 rgba(0, 0, 0, 0.5)',
'z-index': 1337,
......@@ -628,7 +624,6 @@ function frameDiv(document, functionName, url, internalUrl) {
applyStyles(frameLink, linkStyle);
var frameAnchor = document.createElement('a');
applyStyles(frameAnchor, anchorStyle);
//frameAnchor.href = url
frameAnchor.appendChild(document.createTextNode(cleanedUrl));
frameLink.appendChild(frameAnchor);
frame.appendChild(frameLink);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment