Skip to content

Commit

Permalink
Merge branch 'master' into generate-ebook-default-settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Monirzadeh committed Oct 18, 2023
2 parents ede6a27 + 106bf16 commit 94f34ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/view/assets/js/page/setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ export default {
},
methods: {
saveSetting() {
var authToken = JSON.parse(localStorage.getItem("shiori-token"));
let options = {
ShowId: this.appOptions.ShowId,
ListMode: this.appOptions.ListMode,
Expand All @@ -113,9 +112,10 @@ export default {
body: JSON.stringify({
config: this.appOptions
}),
headers: { "Content-Type": "application/json",
Authorization: `Bearer ${authToken}`,
},
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer ' + localStorage.getItem("shiori-token"),
}
}).then(response => {
if (!response.ok) throw response;
return response.json();
Expand Down

0 comments on commit 94f34ce

Please sign in to comment.