D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
cpanel
/
ea-ruby27
/
root
/
usr
/
share
/
passenger
/
templates
/
error_renderer
/
with_details
/
src
/
Filename :
index.jsx
back
Copy
/** @jsx h */ import { render, h } from 'preact'; import 'jquery'; import './bootstrap/bootstrap.css'; import './bootstrap/bootstrap.js'; import PageMain from './PageMain.jsx'; import './PageMain.css'; window.errorPageExtensions = []; function initialize(pageMain) { window.ErrorPage = pageMain; for (var i = 0; i < window.errorPageExtensions.length; i++) { window.errorPageExtensions[i](); } } window.renderErrorPage = function() { render( <PageMain spec={window.spec} ref={ initialize } />, document.getElementById('root') ); }