How to add a custom title bar in electron in quasar when using typescript. #9883
Unanswered
Nethrenial
asked this question in
CLI - Electron mode
Replies: 2 comments 3 replies
-
What example? |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
Did you do the preload script properly? https://quasar.dev/quasar-cli/developing-electron-apps/frameless-electron-window#the-preload-script |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Please, can any of you help me, after setting my quasar project with electron and typescript, I tried to add a custom title bar with help of an official example in quasar documentation, in it, we inject a new custom myWindowApi to window object in renderer thread via remote and ContextBridge.While this works in development mode and title bar functions as intended(even then Vetur and ESLint throw errors). But when I try to build it compilation fails because the property 'myWindowApi' doesn't exist on the window. I can't get to typescript to recognize my custom injected property in the window object. I'm so frustrated because I followed the official docs correctly


.
Beta Was this translation helpful? Give feedback.
All reactions