fix(gallery): resolve image zoom stretching and add rich viewer features
deploy-chabokan / deploy (push) Canceled after 0s
deploy-chabokan / deploy (push) Canceled after 0s
This commit is contained in:
@@ -2,13 +2,15 @@ import axios from 'axios';
|
||||
|
||||
export const TransactionService = {
|
||||
_getAuthHeader: () => {
|
||||
const bmToken = (typeof document !== 'undefined'
|
||||
? document.cookie.split('; ').find((row) => row.startsWith('bm-token='))?.split('=')[1]
|
||||
: null) || (typeof localStorage !== 'undefined' ? localStorage.getItem('bm-token') : null);
|
||||
const bmToken =
|
||||
(typeof document !== 'undefined'
|
||||
? document.cookie
|
||||
.split('; ')
|
||||
.find((row) => row.startsWith('bm-token='))
|
||||
?.split('=')[1]
|
||||
: null) || (typeof localStorage !== 'undefined' ? localStorage.getItem('bm-token') : null);
|
||||
|
||||
return bmToken && bmToken !== 'undefined' && bmToken !== 'null'
|
||||
? { Authorization: `Bearer ${bmToken}` }
|
||||
: {};
|
||||
return bmToken && bmToken !== 'undefined' && bmToken !== 'null' ? { Authorization: `Bearer ${bmToken}` } : {};
|
||||
},
|
||||
/**
|
||||
* Get a single transaction by ID
|
||||
@@ -188,7 +190,6 @@ export const TransactionService = {
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
indexTransactions: async () => {
|
||||
const config = {
|
||||
method: 'post',
|
||||
|
||||
Reference in New Issue
Block a user