mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Use data-type="number" for numeric meta values (#26775)
GitOrigin-RevId: 844f56383457ee7f2043af553b7dd5ae1b33f8a9
This commit is contained in:
@@ -159,7 +159,7 @@ export interface Meta {
|
||||
'ol-languages': SpellCheckLanguage[]
|
||||
'ol-learnedWords': string[]
|
||||
'ol-legacyEditorThemes': string[]
|
||||
'ol-licenseQuantity': number | undefined
|
||||
'ol-licenseQuantity'?: number
|
||||
'ol-loadingText': string
|
||||
'ol-managedGroupSubscriptions': ManagedGroupSubscription[]
|
||||
'ol-managedInstitutions': ManagedInstitution[]
|
||||
@@ -320,6 +320,7 @@ export default function getMeta<T extends keyof Meta>(name: T): Meta[T] {
|
||||
value = element.hasAttribute('content')
|
||||
break
|
||||
case 'json':
|
||||
case 'number':
|
||||
if (!plainTextValue) {
|
||||
// JSON.parse('') throws
|
||||
value = undefined
|
||||
|
||||
Reference in New Issue
Block a user