mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-15 19:56:55 +00:00
Fix type def, handle error case
This commit is contained in:
parent
4c2969778b
commit
3d62277edd
1
web/global.d.ts
vendored
1
web/global.d.ts
vendored
@ -3,6 +3,7 @@ declare module 'next/config' {
|
||||
publicRuntimeConfig: {
|
||||
modifiedDate: string
|
||||
modifiedYear: string
|
||||
gitHash: string?
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -7,6 +7,9 @@ const config = async (_phase, { _defaultConfig }) => {
|
||||
git.stdout.on('data', (data) => {
|
||||
resolve(data.toString().trim())
|
||||
})
|
||||
git.on('error', () => {
|
||||
resolve(undefined)
|
||||
})
|
||||
})
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user