address some jshint complaints
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
define([
|
define([
|
||||||
'/bower_components/chainpad-crypto/crypto.js'
|
'/bower_components/chainpad-crypto/crypto.js',
|
||||||
|
'/bower_components/jquery/dist/jquery.min.js',
|
||||||
], function (Crypto) {
|
], function (Crypto) {
|
||||||
|
var $ = window.jQuery;
|
||||||
var common = {};
|
var common = {};
|
||||||
|
|
||||||
var getSecrets = common.getSecrets = function () {
|
var getSecrets = common.getSecrets = function () {
|
||||||
@@ -47,7 +49,7 @@ define([
|
|||||||
|
|
||||||
var importContent = common.importContent = function (type, f) {
|
var importContent = common.importContent = function (type, f) {
|
||||||
return function () {
|
return function () {
|
||||||
var $files = $('<input type="file">').click()
|
var $files = $('<input type="file">').click();
|
||||||
$files.on('change', function (e) {
|
$files.on('change', function (e) {
|
||||||
var file = e.target.files[0];
|
var file = e.target.files[0];
|
||||||
var reader = new FileReader();
|
var reader = new FileReader();
|
||||||
|
|||||||
@@ -364,7 +364,7 @@ define([
|
|||||||
.click(Cryptpad.importContent('text/plain', function (content) {
|
.click(Cryptpad.importContent('text/plain', function (content) {
|
||||||
var shjson = stringify(Hyperjson.fromDOM(domFromHTML(content).body));
|
var shjson = stringify(Hyperjson.fromDOM(domFromHTML(content).body));
|
||||||
applyHjson(shjson);
|
applyHjson(shjson);
|
||||||
onLocal();
|
realtimeOptions.onLocal();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// set the hash
|
// set the hash
|
||||||
|
|||||||
Reference in New Issue
Block a user