mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Provide pathname to sframe-common-outer
This commit is contained in:
parent
cdda692492
commit
5f67038dad
@ -8,7 +8,7 @@ define([
|
||||
], function (nThen, ApiConfig, RequireConfig, Messages, $) {
|
||||
var common = {};
|
||||
|
||||
common.initIframe = function (waitFor, isRt) {
|
||||
common.initIframe = function (waitFor, isRt, pathname) {
|
||||
var requireConfig = RequireConfig();
|
||||
var lang = Messages._languageUsed;
|
||||
var req = {
|
||||
@ -31,7 +31,7 @@ define([
|
||||
}
|
||||
|
||||
document.getElementById('sbox-iframe').setAttribute('src',
|
||||
ApiConfig.httpSafeOrigin + window.location.pathname + 'inner.html?' +
|
||||
ApiConfig.httpSafeOrigin + (pathname || window.location.pathname) + 'inner.html?' +
|
||||
requireConfig.urlArgs + '#' + encodeURIComponent(JSON.stringify(req)));
|
||||
|
||||
// This is a cheap trick to avoid loading sframe-channel in parallel with the
|
||||
|
||||
Loading…
Reference in New Issue
Block a user