Skip to content

Commit 88c00f7

Browse files
authored
Merge pull request #13829 from nextcloud/chore/document-removed-host-functions
chore: document removal of `OC` host functions
2 parents c07d53b + 07d309a commit 88c00f7

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_33.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,15 @@ Removed APIs
3434
To replace ``OC.reload`` directly use ``window.location.reload``.
3535
- ``OC.fileIsBlacklisted`` was removed. It was deprecated since Nextcloud 18.
3636
The replacement is to use ``validateFilename`` from the `@nextcloud/files <https://www.npmjs.com/package/@nextcloud/files>`_ package.
37-
- The `OCA.Sharing.ExternalLinkActions` API was deprecated in Nextcloud 23 and is now removed.
38-
It was replaced with `OCA.Sharing.ExternalShareAction` which now have a proper API by using `registerSidebarAction` from `@nextcloud/sharing` instead.
37+
- The deprecated host methods from `OC` were deprecated since Nextcloud 17 and are now removed
38+
39+
- To replace ``OC.getHost`` use ``window.location.host``.
40+
- To replace ``OC.getHostName`` use ``window.location.hostname``.
41+
- To replace ``OC.getPort`` use ``window.location.port``.
42+
- To replace ``OC.getProtocol`` use ``window.location.protocol``.
43+
44+
- The ``OCA.Sharing.ExternalLinkActions`` API was deprecated in Nextcloud 23 and is now removed.
45+
It was replaced with ``OCA.Sharing.ExternalShareAction`` which now have a proper API by using ``registerSidebarAction`` from `@nextcloud/sharing <https://www.npmjs.com/package/@nextcloud/sharing>`_ instead.
3946

4047
Back-end changes
4148
----------------

0 commit comments

Comments
 (0)