Last active
August 29, 2015 13:59
-
-
Save pazguille/10595800 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (window, n) { | |
'use strict'; | |
var storage = window.localStorage; | |
var count = parseInt(storage.getItem('gkcounter'), 10) || 0; | |
if (count >= n) { | |
alert('Create a new instance of gesturekit'); | |
return; | |
} | |
count += 1; | |
storage.setItem('gkcounter', count); | |
}(this, 5)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment