Add alertresponse2.

This commit is contained in:
Ethan Dalool 2020-11-08 19:25:22 -08:00
parent ca6e1ea0bc
commit b9b8390753

View file

@ -0,0 +1,14 @@
<snippet>
<content><![CDATA[
if (! response.meta.json_ok)
{
alert(JSON.stringify(response));
return;
}
]]></content>
<tabTrigger>alertresponse2</tabTrigger>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- <tabTrigger>hello</tabTrigger> -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>