mirror of
https://github.com/liriliri/eruda.git
synced 2026-04-01 10:18:35 +08:00
Dev: Catch event listeners
This commit is contained in:
@@ -148,6 +148,10 @@ export default class Sources extends Tool
|
||||
}
|
||||
_renderHttp()
|
||||
{
|
||||
var val = this._data.val;
|
||||
|
||||
val.hasResTxt = (val.resTxt.trim() !== '');
|
||||
|
||||
this._$el.html(this._httpTpl(this._data.val));
|
||||
}
|
||||
_renderCode()
|
||||
|
||||
@@ -13,5 +13,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<pre class="eruda-response">{{resTxt}}</pre>
|
||||
{{#if hasResTxt}}
|
||||
<pre class="eruda-response">{{resTxt}}</pre>
|
||||
{{/if}}
|
||||
</div>
|
||||
Reference in New Issue
Block a user