address some jshint complaints

pull/1/head
ansuz 9 years ago
parent 12bbf3e8f6
commit d025d13295

@ -1,6 +1,8 @@
define([
'/bower_components/chainpad-crypto/crypto.js'
'/bower_components/chainpad-crypto/crypto.js',
'/bower_components/jquery/dist/jquery.min.js',
], function (Crypto) {
var $ = window.jQuery;
var common = {};
var getSecrets = common.getSecrets = function () {
@ -47,7 +49,7 @@ define([
var importContent = common.importContent = function (type, f) {
return function () {
var $files = $('<input type="file">').click()
var $files = $('<input type="file">').click();
$files.on('change', function (e) {
var file = e.target.files[0];
var reader = new FileReader();

@ -364,7 +364,7 @@ define([
.click(Cryptpad.importContent('text/plain', function (content) {
var shjson = stringify(Hyperjson.fromDOM(domFromHTML(content).body));
applyHjson(shjson);
onLocal();
realtimeOptions.onLocal();
}));
// set the hash

Loading…
Cancel
Save