1
0
Fork 0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2026-03-29 15:51:35 +00:00

Redesign return from settings page

This commit is contained in:
Cadence Ember 2020-05-29 20:46:45 +12:00
parent bec1b9d207
commit 474274740f
No known key found for this signature in database
GPG key ID: 128B99B1B74A6412
7 changed files with 68 additions and 16 deletions

View file

@ -0,0 +1,8 @@
function getSettingsReferrer(current, settingsURL = "/settings") {
if (!current) return settingsURL
const params = new URLSearchParams()
params.append("referrer", current)
return settingsURL + "?" + params.toString()
}
module.exports.getSettingsReferrer = getSettingsReferrer