Pavan Kumar Sunkara d854660fd9 Get loadEnv working
2018-10-14 17:39:35 +02:00

11 lines
309 B
JavaScript

import { document } from 'global';
export default function addHeadWarning(text, className = '') {
const warning = document.createElement('h1');
warning.textContent = text;
warning.className = className;
warning.style.color = 'red';
document.body.insertBefore(warning, document.body.firstChild);
}