Fix team editor

This commit is contained in:
yflory
2019-10-10 13:56:12 +02:00
parent d3b03f46ea
commit 13df7e8d38
5 changed files with 17 additions and 11 deletions

View File

@@ -372,7 +372,8 @@ define([
common.getMetadata = function (cb) {
postMessage("GET_METADATA", null, function (obj) {
var parsed = Hash.parsePadUrl(window.location.href);
postMessage("GET_METADATA", parsed && parsed.type, function (obj) {
if (obj && obj.error) { return void cb(obj.error); }
cb(null, obj);
});