jshint compliance

This commit is contained in:
ansuz
2016-02-15 16:07:46 +01:00
parent d1885fbab6
commit 3cb94b8d80
16 changed files with 52 additions and 29 deletions

View File

@@ -6,7 +6,7 @@ define([
'/bower_components/jquery/dist/jquery.min.js',
'/customize/pad.js'
], function (Config, Realtime, Messages, Crypto) {
var $ = jQuery;
var $ = window.jQuery;
$(window).on('hashchange', function() {
window.location.reload();
});
@@ -36,7 +36,8 @@ define([
try {
eval(content); // jshint ignore:line
} catch (err) {
alert(err.message);
// FIXME don't use alert, make an errorbox
window.alert(err.message);
}
});
});