mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
Fix invalid PIN and UNPIN commands
This commit is contained in:
parent
2b89e479f8
commit
0dd3c1f53d
@ -125,8 +125,8 @@ define([
|
||||
});
|
||||
toPin = Utils.Util.deduplicateString(toPin);
|
||||
toUnpin = Utils.Util.deduplicateString(toUnpin);
|
||||
Cryptpad.pinPads(toPin, function () {});
|
||||
Cryptpad.unpinPads(toUnpin, function () {});
|
||||
if (toPin.length) { Cryptpad.pinPads(toPin, function () {}); }
|
||||
if (toUnpin.length) { Cryptpad.unpinPads(toUnpin, function () {}); }
|
||||
if (!toPin.length && !toUnpin.length) { return; }
|
||||
Cryptpad.setPadAttribute('ooImages', list, function (err) {
|
||||
if (err) { console.error(err); }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user