mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
* Fixed some parameter passing and computed placements * reset edit when user change * Lint fix
8 lines
200 B
JavaScript
8 lines
200 B
JavaScript
// Equivalent of jQuery's param
|
|
|
|
export default function (params) {
|
|
return Object.keys(params).map((k) => {
|
|
return `${encodeURIComponent(k)}=${encodeURIComponent(params[k])}`;
|
|
}).join('&');
|
|
}
|