Skip to content

Commit

Permalink
fix: add text for @jakearchibald
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Apr 18, 2017
1 parent 34decd3 commit 8572ef0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion public/blog/protection.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ If that happens, JS Bin will automatically disable the *live JavaScript renderin

We've long had [loop protection](https://www.youtube.com/watch?v=EA74ODg1qKE) (video) in JS Bin which meant if you accidently wrote an infinite loop, JS Bin would quietly exit out and warn in the browser console.

> To disable the loop protection: add the following in your JavaScript:
> ```
> // noprotect
> ```
Now you'll see a warning either in the footer of the JavaScript panel, or in the gutter (if you have gutter warnings enabled in your [preferences](/account/preferences)).

![Loop protection in JS Bin](/images/blog/loop-protect.gif)

We've also made the [loop protection module available](http://github.com/jsbin/loop-protect) in our git repo under MIT, so you're welcome re-use it in your own projects.
We've also made the [loop protection module available](http://github.com/jsbin/loop-protect) in our git repo under MIT, so you're welcome re-use it in your own projects.

0 comments on commit 8572ef0

Please sign in to comment.