lint compliance
This commit is contained in:
parent
fef97ed60e
commit
a592317e35
@ -1,11 +1,12 @@
|
|||||||
define([
|
define([
|
||||||
|
'jquery',
|
||||||
'/common/common-util.js',
|
'/common/common-util.js',
|
||||||
'/common/visible.js',
|
'/common/visible.js',
|
||||||
'/common/common-hash.js',
|
'/common/common-hash.js',
|
||||||
'/file/file-crypto.js',
|
'/file/file-crypto.js',
|
||||||
'/bower_components/localforage/dist/localforage.min.js',
|
'/bower_components/localforage/dist/localforage.min.js',
|
||||||
'/bower_components/tweetnacl/nacl-fast.min.js',
|
'/bower_components/tweetnacl/nacl-fast.min.js',
|
||||||
], function (Util, Visible, Hash, FileCrypto, localForage) {
|
], function ($, Util, Visible, Hash, FileCrypto, localForage) {
|
||||||
var Nacl = window.nacl;
|
var Nacl = window.nacl;
|
||||||
var Thumb = {
|
var Thumb = {
|
||||||
dimension: 100,
|
dimension: 100,
|
||||||
|
|||||||
@ -188,7 +188,7 @@ define([
|
|||||||
mutations.forEach(function(mutation) {
|
mutations.forEach(function(mutation) {
|
||||||
if (mutation.type === 'childList') {
|
if (mutation.type === 'childList') {
|
||||||
var list_values = [].slice.call(mutation.target.children)
|
var list_values = [].slice.call(mutation.target.children)
|
||||||
.map(function (el) { return el.outerHTML })
|
.map(function (el) { return el.outerHTML; })
|
||||||
.join('');
|
.join('');
|
||||||
mediaMap[mutation.target.getAttribute('src')] = list_values;
|
mediaMap[mutation.target.getAttribute('src')] = list_values;
|
||||||
observer.disconnect();
|
observer.disconnect();
|
||||||
|
|||||||
@ -7,12 +7,10 @@ define([
|
|||||||
'/common/tippy.min.js',
|
'/common/tippy.min.js',
|
||||||
'/customize/application_config.js',
|
'/customize/application_config.js',
|
||||||
|
|
||||||
'/bower_components/tweetnacl/nacl-fast.min.js',
|
|
||||||
'css!/common/tippy.css',
|
'css!/common/tippy.css',
|
||||||
], function ($, Config, Cryptpad, Util, MediaTag, Tippy, AppConfig) {
|
], function ($, Config, Cryptpad, Util, MediaTag, Tippy, AppConfig) {
|
||||||
var UI = {};
|
var UI = {};
|
||||||
var Messages = Cryptpad.Messages;
|
var Messages = Cryptpad.Messages;
|
||||||
var Nacl = window.nacl;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Requirements from cryptpad-common.js
|
* Requirements from cryptpad-common.js
|
||||||
|
|||||||
@ -800,7 +800,6 @@ define([
|
|||||||
};
|
};
|
||||||
|
|
||||||
var initThumbnails = function () {
|
var initThumbnails = function () {
|
||||||
var oldThumbnailState;
|
|
||||||
var privateDat = metadataMgr.getPrivateData();
|
var privateDat = metadataMgr.getPrivateData();
|
||||||
if (!privateDat.thumbnails) { return; } // Thumbnails are disabled
|
if (!privateDat.thumbnails) { return; } // Thumbnails are disabled
|
||||||
var hash = privateDat.availableHashes.editHash ||
|
var hash = privateDat.availableHashes.editHash ||
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user