Skip to main content

All Questions

0 votes
0 answers
17 views

How to Detect Dynamically Added or Removed Sources with Electron DesktopCapturer?

I am working on an Electron app that utilizes the desktopCapturer module to fetch sources (both windows and screens), I now need assistance in detecting when new sources are added or existing ones are ...
Himanshu Rahi's user avatar
0 votes
1 answer
186 views

Is <img :src="require`${JSON.parse(string)}`"> in electron vue is safe from XSS?

QUESTION UPDATED I am inspecting a client's application written with Vue.js and I found there a following construction. // Somewhere else in the code var data = JSON.parse(jsonString); // In the vue ...
Max's user avatar
  • 2,170
0 votes
0 answers
297 views

Stop Auto Hide Menu Bar (Electron on Mac)

How can you make sure that the menu bar stays active when a BrowserWindow in Electron is visible? Case Explanation: Once you click on my Tray icon, a BrowserWindow is opened with some HTML. Once the ...
user2500558's user avatar
0 votes
0 answers
189 views

Is there a way to call a function in contextBridge, that won't be read in renderer.js, from main.js in electron?

I hope you are having a good morning. I was wondering if there was a way to call a regular function in contextBridge in preload.js from main.js that will not be read by renderer.js. For example when ...
Ryan Johnson's user avatar
1 vote
2 answers
2k views

Sending messages through Electron IPCmain channel to vue instance only works one way

I'm tyring to send messages back and forth between the main electron process and the vue instance. What i have so far is Preload.js: import { contextBridge, ipcRenderer } from 'electron' window....
Oirampok's user avatar
  • 629
0 votes
1 answer
457 views

Trouble importing electron-updater

I have trouble integrating electron-updater into my project. I'm working on a windows system. First I install electron-updater (via npm or yarn) which works without problems. Then I load the package ...
fseydel's user avatar
  • 175
3 votes
2 answers
4k views

Error: ERR_FAILED (-2) loading electronjs when closing and opening new window

I'm trying to open a app loader like window that will open first upon running the app just to cover some async scripts running and upon completion, the loader window will close and open the main ...
Juliver Galleto's user avatar
1 vote
0 answers
120 views

electronjs camera not found on raspiberry pi

So I created an electron app that will open a camera ang scan a QR code, this is the plugin that I'm using https://github.com/schmich/instascan. The html files was done using Vue and tested the output ...
Juliver Galleto's user avatar
1 vote
1 answer
632 views

Electron NativeTheme: Cannot set property 'themeSource' of undefined

currently I am trying to setup a system/light/dark mode switcher in my electron app. For the electron app, I have used the electron-vue library and upgraded then the electron version to 7.3.2. So now ...
Julian's user avatar
  • 3,799
1 vote
1 answer
719 views

How to use multi scss in Electron-Vue Project

I want to use multi scss Files in Electron-Vue and i am able to use single scss file in Electron-vue with the help of this solution By adding this in webpack.renderer.js . Note: Using Bootstrap ...
welcomegkm's user avatar
1 vote
2 answers
919 views

Mutation payload changes value by itself in vuex store mutation

I'm trying to build an Electron app with VueJS using the electron-vue boilerplate. I have a mutation which updates parts of the state based on the payload it receives. However, somewhere between the ...
user2307798's user avatar
1 vote
0 answers
156 views

can't set host to node net.socket connect

I'm using electron-vue build an APP. I need create a tcp connection, and I use net.Socket().But i get a no response when I set HOST. I need use the socket global, so I create a class like this: ...
starhu's user avatar
  • 11
1 vote
0 answers
862 views

Cannot set property of undefined when import promise in vue component

"vue-electron": "^1.0.6" "electron": "4.2.4" "webpack": "^4.15.1" "vue": "^2.5.16" In a vue component, I import a js file <template> ... </template> <script> import something from ...
Piel Silbad's user avatar
3 votes
1 answer
20k views

Javascript async function returns [object Promise]

Async function returns [object Promise] but desired behavior is returning real value. I can get the value from console.log. I guess it is a expected behavior of the function but I have no idea to how ...
user4565857's user avatar
1 vote
1 answer
307 views

How do I get result by 'return' from NeDB in vue.js

I am trying to get a data from NeDB in a method in a .vue file using electron-vue. I know I can get that by putting that to a variable, but I want to get that by 'return' because I want to use the ...
user4565857's user avatar

15 30 50 per page