parseInt
This commit is contained in:
parent
8bcc43905a
commit
0745ccf995
7 changed files with 15 additions and 15 deletions
|
|
@ -173,9 +173,9 @@ export const hex2rgb = (hex) => {
|
|||
|
||||
return result
|
||||
? {
|
||||
r: parseInt(result[1], 16),
|
||||
g: parseInt(result[2], 16),
|
||||
b: parseInt(result[3], 16),
|
||||
r: Number.parseInt(result[1], 16),
|
||||
g: Number.parseInt(result[2], 16),
|
||||
b: Number.parseInt(result[3], 16),
|
||||
}
|
||||
: null
|
||||
}
|
||||
|
|
|
|||
|
|
@ -372,7 +372,7 @@ export const parseNotification = (data) => {
|
|||
}
|
||||
|
||||
output.created_at = new Date(data.created_at)
|
||||
output.id = parseInt(data.id)
|
||||
output.id = Number.parseInt(data.id)
|
||||
|
||||
return output
|
||||
}
|
||||
|
|
@ -385,8 +385,8 @@ export const parseLinkHeaderPagination = (linkHeader, opts = {}) => {
|
|||
const minId = parsedLinkHeader.prev?.min_id
|
||||
|
||||
return {
|
||||
maxId: flakeId ? maxId : parseInt(maxId, 10),
|
||||
minId: flakeId ? minId : parseInt(minId, 10),
|
||||
maxId: flakeId ? maxId : Number.parseInt(maxId, 10),
|
||||
minId: flakeId ? minId : Number.parseInt(minId, 10),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -253,7 +253,7 @@ const extractStyleConfig = ({
|
|||
contentColumnWidth,
|
||||
notifsColumnWidth,
|
||||
themeEditorMinWidth:
|
||||
parseInt(themeEditorMinWidth) === 0 ? 'fit-content' : themeEditorMinWidth,
|
||||
Number.parseInt(themeEditorMinWidth) === 0 ? 'fit-content' : themeEditorMinWidth,
|
||||
emojiReactionsScale,
|
||||
emojiSize,
|
||||
navbarSize,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue