hacks to handle weird entries in drive

This commit is contained in:
ansuz
2018-05-18 10:28:31 +02:00
parent 2170fcb9ad
commit bd66c8fee8
2 changed files with 5 additions and 1 deletions

View File

@@ -578,7 +578,7 @@ define([
}
var parsed = Hash.parsePadUrl(window.location.href);
if (!parsed.type || !parsed.hashData) { return void cb('E_INVALID_HREF'); }
if (parsed.type === 'file') { secret.channel = Util.base64ToHex(secret.channel); }
if (parsed.type === 'file' && typeof(parsed.channel) === 'string') { secret.channel = Util.base64ToHex(secret.channel); }
hashes = Hash.getHashes(secret);
if (secret.version === 0) {