aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/OC/util-history.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/OC/util-history.js')
-rw-r--r--core/src/OC/util-history.js35
1 files changed, 10 insertions, 25 deletions
diff --git a/core/src/OC/util-history.js b/core/src/OC/util-history.js
index 54019b804c2..7ecd0e098c6 100644
--- a/core/src/OC/util-history.js
+++ b/core/src/OC/util-history.js
@@ -1,26 +1,10 @@
/**
- * @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
- *
- * @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
- *
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
import _ from 'underscore'
-import OC from './index'
+import OC from './index.js'
/**
* Utility class for the history API,
@@ -39,11 +23,11 @@ export default {
* Note: this includes a workaround for IE8/IE9 that uses
* the hash part instead of the search part.
*
- * @param {Object|string} params to append to the URL, can be either a string
+ * @param {object | string} params to append to the URL, can be either a string
* or a map
* @param {string} [url] URL to be used, otherwise the current URL will be used,
* using the params as query string
- * @param {boolean} [replace=false] whether to replace instead of pushing
+ * @param {boolean} [replace] whether to replace instead of pushing
*/
_pushState(params, url, replace) {
let strParams
@@ -90,7 +74,7 @@ export default {
* Note: this includes a workaround for IE8/IE9 that uses
* the hash part instead of the search part.
*
- * @param {Object|string} params to append to the URL, can be either a string or a map
+ * @param {object | string} params to append to the URL, can be either a string or a map
* @param {string} [url] URL to be used, otherwise the current URL will be used, using the params as query string
*/
pushState(params, url) {
@@ -103,7 +87,7 @@ export default {
* Note: this includes a workaround for IE8/IE9 that uses
* the hash part instead of the search part.
*
- * @param {Object|string} params to append to the URL, can be either a string
+ * @param {object | string} params to append to the URL, can be either a string
* or a map
* @param {string} [url] URL to be used, otherwise the current URL will be used,
* using the params as query string
@@ -124,7 +108,8 @@ export default {
/**
* Parse a query string from the hash part of the URL.
* (workaround for IE8 / IE9)
- * @returns {string}
+ *
+ * @return {string}
*/
_parseHashQuery() {
const hash = window.location.hash
@@ -147,7 +132,7 @@ export default {
* Parse the query/search part of the URL.
* Also try and parse it from the URL hash (for IE8)
*
- * @returns {Object} map of parameters
+ * @return {object} map of parameters
*/
parseUrlQuery() {
const query = this._parseHashQuery()