mirror of
https://github.com/filp/whoops.git
synced 2026-09-14 19:56:23 +00:00
Include Zepto library so that JS on error pages still works.
This commit is contained in:
@@ -120,6 +120,7 @@ class PrettyPageHandler extends Handler
|
||||
|
||||
// @todo: asset compiler
|
||||
"stylesheet" => file_get_contents($this->getResource("css/whoops.base.css")),
|
||||
"jquery" => file_get_contents($this->getResource("js/zepto.min.js")),
|
||||
"javascript" => file_get_contents($this->getResource("js/whoops.base.js")),
|
||||
|
||||
// Template paths:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$(function() {
|
||||
Zepto(function($) {
|
||||
prettyPrint();
|
||||
|
||||
var $frameLines = $('[id^="frame-line-"]');
|
||||
|
||||
Vendored
+2
File diff suppressed because one or more lines are too long
@@ -30,7 +30,7 @@
|
||||
</div>
|
||||
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/prettify/r224/prettify.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
||||
<script><?php echo $jquery ?></script>
|
||||
<script><?php echo $javascript ?></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user