From 5213b804d9754bfa7900b59894a6ad1107a6ada5 Mon Sep 17 00:00:00 2001 From: djmaze Date: Fri, 16 Jul 2021 16:24:07 +0200 Subject: [PATCH] Some tiny changes --- README.md | 1 + dev/View/Popup/Compose.js | 1 + plugins/README.md | 3 ++- snappymail/v/0.0.0/app/libraries/RainLoop/Utils.php | 2 +- vendors/knockout/src/subscribables/subscribable.js | 1 + 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ac12eb8b9..a8ec87646 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,7 @@ This fork of RainLoop has the following changes: * Replaced old Sabre library * AddressBook Contacts support MySQL/MariaDB utf8mb4 * Prevent Google FLoC +* Added [Fetch Metadata Request Headers](https://www.w3.org/TR/fetch-metadata/) checks ### Removal of old JavaScript diff --git a/dev/View/Popup/Compose.js b/dev/View/Popup/Compose.js index 6fbbca82b..3886fe3e8 100644 --- a/dev/View/Popup/Compose.js +++ b/dev/View/Popup/Compose.js @@ -744,6 +744,7 @@ class ComposePopupView extends AbstractViewPopup { this.initOnShow(type, oMessageOrArray, aToEmails, aCcEmails, aBccEmails, sCustomSubject, sCustomPlainText); } +// (navigator.standalone || matchMedia('(display-mode: standalone)').matches || matchMedia('(display-mode: fullscreen)').matches) && ThemeStore.isMobile() && this.oContent.requestFullscreen && this.oContent.requestFullscreen(); } diff --git a/plugins/README.md b/plugins/README.md index 177139cba..57279fb75 100644 --- a/plugins/README.md +++ b/plugins/README.md @@ -1,3 +1,4 @@ +PHP class Plugin extends \RainLoop\Plugins\AbstractPlugin @@ -196,7 +197,7 @@ $Plugin->addHook('hook.name', 'functionName'); string $sAction array &$aResponseItem -### filter.message-html' +### filter.message-html ### filter.message-plain params: \RainLoop\Model\Account $oAccount diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Utils.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Utils.php index 6c3ead748..b5f507762 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Utils.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Utils.php @@ -238,7 +238,7 @@ class Utils { static $sAppPath; if (!$sAppPath) { - $sAppPath = \preg_replace('#index\\.php.*$#D', '$1', $_SERVER['SCRIPT_NAME']); + $sAppPath = \preg_replace('#index\\.php.*$#D', '', $_SERVER['SCRIPT_NAME']); // $sAppPath = Api::Config()->Get('labs', 'app_default_path', ''); } return $sAppPath; diff --git a/vendors/knockout/src/subscribables/subscribable.js b/vendors/knockout/src/subscribables/subscribable.js index 3de09bca0..98686dc25 100644 --- a/vendors/knockout/src/subscribables/subscribable.js +++ b/vendors/knockout/src/subscribables/subscribable.js @@ -26,6 +26,7 @@ class koSubscription } disposeWhenNodeIsRemoved(node) { + // MutationObserver ? this._node = node; ko.utils.domNodeDisposal.addDisposeCallback(node, this._domNodeDisposalCallback = this.dispose.bind(this)); }