Add 'alertresponse' snippet.
This commit is contained in:
parent
0d72593ea1
commit
ca6e1ea0bc
1 changed files with 14 additions and 0 deletions
14
voussoir/alertresponse.sublime-snippet
Normal file
14
voussoir/alertresponse.sublime-snippet
Normal file
|
@ -0,0 +1,14 @@
|
|||
<snippet>
|
||||
<content><![CDATA[
|
||||
if (response.meta.status !== 200)
|
||||
{
|
||||
alert(JSON.stringify(response));
|
||||
return;
|
||||
}
|
||||
]]></content>
|
||||
<tabTrigger>alertresponse</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>
|
Loading…
Reference in a new issue