diff --git a/www/common/common-interface.js b/www/common/common-interface.js index e4729a2c8..9323c0bc1 100644 --- a/www/common/common-interface.js +++ b/www/common/common-interface.js @@ -1,4 +1,4 @@ -/efine([ +define([ 'jquery', '/customize/messages.js', '/common/common-util.js', diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 883538607..0a2ead8f0 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -278,8 +278,8 @@ define([ cb(); }); }; - common.getPadAttribute = function (attr, cb) { - var href = Hash.getRelativeHref(window.location.href); + common.getPadAttribute = function (attr, cb, href) { + href = Hash.getRelativeHref(href || window.location.href); postMessage("GET_PAD_ATTRIBUTE", { href: href, attr: attr,