Hidden hash for files

This commit is contained in:
yflory
2020-01-27 15:45:57 +01:00
parent 7b9f86157e
commit 7a02b074b7
5 changed files with 67 additions and 36 deletions

View File

@@ -51,7 +51,7 @@ define([
// Store the href in memory
// This is a placeholder value overriden in common.ready from sframe-common-outer
var currentPad = {
var currentPad = common.currentPad = {
href: window.location.href
};
@@ -763,7 +763,7 @@ define([
};
// Get data about a given channel: use with hidden hashes
common.getPadDataFromChannel = function (obj, cb) {
if (!obj || !obj.channel || !obj.edit) { return void cb('EINVAL'); }
if (!obj || !obj.channel) { return void cb('EINVAL'); }
postMessage("GET_PAD_DATA_FROM_CHANNEL", obj, function (data) {
cb(void 0, data);
});
@@ -1795,7 +1795,7 @@ define([
rdyCfg = rdyCfg || {};
if (rdyCfg.currentPad) {
currentPad = rdyCfg.currentPad;
currentPad = common.currentPad = rdyCfg.currentPad;
}
if (initialized) {