Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/develop' into feature/nc-27
Browse files Browse the repository at this point in the history
  • Loading branch information
LinneyS committed Nov 30, 2023
2 parents 11413a1 + ba2224e commit 5f3d113
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion lib/Controller/EditorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,6 @@ public function index($fileId, $filePath = null, $shareToken = null, $version =
\OCP\Util::addHeader("meta", ["name" => "apple-touch-fullscreen", "content" => "yes"]);

$csp = new ContentSecurityPolicy();
$csp->allowInlineScript(true);

if (preg_match("/^https?:\/\//i", $documentServerUrl)) {
$csp->addAllowedScriptDomain($documentServerUrl);
Expand Down
1 change: 0 additions & 1 deletion lib/DirectEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ public function open(IToken $token): Response {
$response = new TemplateResponse($this->appName, "editor", $params, "base");

$csp = new ContentSecurityPolicy();
$csp->allowInlineScript(true);

if (preg_match("/^https?:\/\//i", $documentServerUrl)) {
$csp->addAllowedScriptDomain($documentServerUrl);
Expand Down
2 changes: 1 addition & 1 deletion src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
config.events.onRequestHistory = OCA.Onlyoffice.onRequestHistory;
config.events.onRequestHistoryData = OCA.Onlyoffice.onRequestHistoryData;
config.events.onRequestRestore = OCA.Onlyoffice.onRequestRestore;

if (!OCA.Onlyoffice.version) {
config.events.onRequestHistoryClose = OCA.Onlyoffice.onRequestHistoryClose;
}
Expand Down
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
var dir = fileList.getCurrentDirectory();

if ((!OCA.Onlyoffice.setting.sameTab || OCA.Onlyoffice.mobile || OCA.Onlyoffice.Desktop) && open) {
$loaderUrl = OCA.Onlyoffice.Desktop ? "" : OC.filePath(OCA.Onlyoffice.AppName, "templates", "loader.html");
var winEditor = window.open($loaderUrl);
var loaderUrl = OCA.Onlyoffice.Desktop ? "" : OC.filePath(OCA.Onlyoffice.AppName, "templates", "loader.html");
var winEditor = window.open(loaderUrl);
}

var createData = {
Expand Down

0 comments on commit 5f3d113

Please sign in to comment.