jshint compliance
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user