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