mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 14:03:42 +00:00
fix: Make polyfilled import.meta.filename getter a valid function
This commit is contained in:
parent
7eabb43bd4
commit
85c6798448
@ -55,7 +55,7 @@ const surrounding_box = (col, lines) => {
|
||||
// Annoying polyfill for inconsistency in different node versions
|
||||
if ( ! import.meta.filename ) {
|
||||
Object.defineProperty(import.meta, 'filename', {
|
||||
get: import.meta.url.slice('file://'.length),
|
||||
get: () => import.meta.url.slice('file://'.length),
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user