Fix profile in read-only mode

This commit is contained in:
yflory
2017-12-12 12:06:31 +01:00
parent b06b2dbafc
commit a863011a0c
4 changed files with 9 additions and 6 deletions

View File

@@ -125,7 +125,7 @@ Version 1
url += ret.type + '/';
if (!ret.hashData) { return url; }
if (ret.hashData.type !== 'pad') { return url + '#' + ret.hash; }
if (ret.hashData.version !== 1) { throw new Error("Only v1 hashes are managed here."); }
if (ret.hashData.version !== 1) { return url + '#' + ret.hash; }
url += '#/' + ret.hashData.version +
'/' + ret.hashData.mode +
'/' + ret.hashData.channel.replace(/\//g, '-') +