Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default ({ app }, inject) => {
// this needs to be set in app/actions as well because it's not injecting for some reason
let url = state.server
if (book.collection > 0) {
url = new URL(book.collection + '/', state.server).href
url = state.server + book.collection + '/'
}
return url
})
Expand Down
2 changes: 1 addition & 1 deletion store/app/getters.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { sha256 } from 'js-sha256'
export function getServerUrl (state) {
let url = state.server
if (state.currentCollection > 0) {
url = new URL(state.currentCollection + '/', state.server).href
url = state.server + state.currentCollection + '/'
}
return url
}
Expand Down
2 changes: 1 addition & 1 deletion store/app/mutations.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function loginStatus (state, data) {
}

export function server (state, data) {
state.server = data
state.server = new URL('', data).href
}

export function secret (state, data) {
Expand Down