mirror of https://github.com/xwiki-labs/cryptpad
Fix opening a text blob in the code editor
This commit is contained in:
parent
7b15775d75
commit
5248c81b65
|
@ -1970,7 +1970,9 @@ define([
|
|||
common.fromFileData = JSON.parse(sessionStorage[Constants.newPadFileData]);
|
||||
var _parsed1 = Hash.parsePadUrl(common.fromFileData.href);
|
||||
var _parsed2 = Hash.parsePadUrl(window.location.href);
|
||||
if (_parsed1.type !== _parsed2.type) { delete common.fromFileData; }
|
||||
if (_parsed1.hashData.type === 'pad') {
|
||||
if (_parsed1.type !== _parsed2.type) { delete common.fromFileData; }
|
||||
}
|
||||
delete sessionStorage[Constants.newPadFileData];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue