Sha256: 2ead1fc985c3ccb0bbb41b8afa470224d1aa7cb4d786aeb8288f70e0e146d59f

Contents?: true

Size: 883 Bytes

Versions: 11

Compression:

Stored size: 883 Bytes

Contents

/*eslint-env browser*/

var clientOverlay = document.createElement('div');
clientOverlay.style.display = 'none';
clientOverlay.style.background = '#fdd';
clientOverlay.style.color = '#000';
clientOverlay.style.position = 'fixed';
clientOverlay.style.zIndex = 9999;
clientOverlay.style.left = 0;
clientOverlay.style.right = 0;
clientOverlay.style.top = 0;
clientOverlay.style.bottom = 0;
clientOverlay.style.overflow = 'auto';

if (document.body) {
  document.body.appendChild(clientOverlay);
}

exports.showProblems =
function showProblems(lines) {
  clientOverlay.innerHTML = '';
  clientOverlay.style.display = 'block';
  lines.forEach(function(msg) {
    var pre = document.createElement('pre');
    pre.textContent = msg;
    clientOverlay.appendChild(pre);
  });
};

exports.clear =
function clear() {
  clientOverlay.innerHTML = '';
  clientOverlay.style.display = 'none';
};

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
webpack_rails-2.0.1 lib/webpack_rails/node_modules/webpack-hot-middleware/client-overlay.js
webpack_rails-2.0.0 lib/webpack_rails/node_modules/webpack-hot-middleware/client-overlay.js
webpack_rails-1.3.1 lib/webpack_rails/node_modules/webpack-hot-middleware/client-overlay.js
webpack_rails-1.3.0 lib/webpack_rails/node_modules/webpack-hot-middleware/client-overlay.js
webpack_rails-1.2.2 lib/webpack_rails/node_modules/webpack-hot-middleware/client-overlay.js
webpack_rails-1.2.1 lib/webpack_rails/node_modules/webpack-hot-middleware/client-overlay.js
webpack_rails-1.2.0 lib/webpack_rails/node_modules/webpack-hot-middleware/client-overlay.js
webpack_rails-1.1.1 lib/webpack_rails/node_modules/webpack-hot-middleware/client-overlay.js
webpack_rails-1.1.0 lib/webpack_rails/node_modules/webpack-hot-middleware/client-overlay.js
webpack_rails-1.0.1 lib/webpack_rails/node_modules/webpack-hot-middleware/client-overlay.js
webpack_rails-1.0.0 lib/webpack_rails/node_modules/webpack-hot-middleware/client-overlay.js