// Of course, you can never fully protect against people deliberately wanting to spam.
var get_unique = function() {
var use_local_storage = supports_html5_storage();
// Of course, you can never fully protect against people deliberately wanting to spam.
var get_unique = function() {
var use_local_storage = supports_html5_storage();
document.getElementById("soundoff").innerHTML = "<strong>Off</strong>";
}
if (supports_html5_storage()) {
document.getElementById("soundoff").innerHTML = "<strong>Off</strong>";
}
if (supports_html5_storage()) {
- if (supports_html5_storage() && localStorage['enable_sound']) {
- set_sound(parseInt(localStorage['enable_sound']));
+ if (supports_html5_storage() && window['localStorage']['enable_sound']) {
+ set_sound(parseInt(window['localStorage']['enable_sound']));