From cfc4853f676c9e265ffd27237c8f65808a82c7ea Mon Sep 17 00:00:00 2001 From: Rikdekker Date: Tue, 20 Oct 2026 16:06:52 +0200 Subject: [PATCH] fix(federation): do not use the underscore global on the remote page Server 35 no longer provides `_` (nextcloud/server@bfd6f754a), so the remote page for federated files throws `_ is not defined` before the editor loads. The binding did nothing: onClose only refers to documentsMain. main dropped it in f5b78209b. Signed-off-by: Rikdekker Assisted-by: ClaudeCode:claude-opus-5-5 --- src/document.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/document.js b/src/document.js index 146604c584..865a090d24 100644 --- a/src/document.js +++ b/src/document.js @@ -211,7 +211,7 @@ const documentsMain = { } if (!isDirectEditing()) { - OC.Util.History.addOnPopStateHandler(_.bind(documentsMain.onClose)) + OC.Util.History.addOnPopStateHandler(documentsMain.onClose) OC.Util.History.pushState() }