mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
* wip: client: i18n * remove maxAge from cookies to get same expiration ad localStorage * set cookies expiration to 10 years * moment: load translations in browser, moment: only load necessary data, remove jquery, remove bluebird * ability to change language * fix logout * add some requiresLogin: false to static pages * fix tests
7 lines
192 B
JavaScript
7 lines
192 B
JavaScript
// Equivalent of jQuery's param
|
|
|
|
export default function (params) {
|
|
Object.keys(params).map((k) => {
|
|
return `${encodeURIComponent(k)}=${encodeURIComponent(params[k])}`;
|
|
}).join('&');
|
|
} |