'use strict';

const electron = require('electron');
const { remote } = require('electron');
const selfBrowserWindow = remote.getCurrentWindow();

selfBrowserWindow.webContents.openDevTools({ mode: 'detach' });
selfBrowserWindow.webContents.once('dom-ready', () => {
    window.JitsiMeetElectron = {
        /**
         * Get sources available for screensharing. The callback is invoked
         * with an array of DesktopCapturerSources.
         *
         * @param {Function} callback - The success callback.
         * @param {Function} errorCallback - The callback for errors.
         * @param {Object} options - Configuration for getting sources.
         * @param {Array} options.types - Specify the desktop source types
         * to get, with valid sources being "window" and "screen".
         * @param {Object} options.thumbnailSize - Specify how big the
         * preview images for the sources should be. The valid keys are
         * height and width, e.g. { height: number, width: number}. By
         * default electron will return images with height and width of
         * 150px.
         */
        obtainDesktopStreams (callback, errorCallback, options = {}) {
            electron.desktopCapturer.getSources(options,
                (error, sources) => {
                    if (error) {
                        errorCallback(error);
                        return;
                    }

                    callback(sources);
                });
        }
    };
});
'use strict';

const electron = require('electron');
const { remote } = require('electron');
const selfBrowserWindow = remote.getCurrentWindow();

selfBrowserWindow.webContents.once('dom-ready', () => {
    window.JitsiMeetElectron = {
        /**
         * Get sources available for screensharing. The callback is invoked
         * with an array of DesktopCapturerSources.
         *
         * @param {Function} callback - The success callback.
         * @param {Function} errorCallback - The callback for errors.
         * @param {Object} options - Configuration for getting sources.
         * @param {Array} options.types - Specify the desktop source types
         * to get, with valid sources being "window" and "screen".
         * @param {Object} options.thumbnailSize - Specify how big the
         * preview images for the sources should be. The valid keys are
         * height and width, e.g. { height: number, width: number}. By
         * default electron will return images with height and width of
         * 150px.
         */
        obtainDesktopStreams (callback, errorCallback, options = {}) {
            electron.desktopCapturer.getSources(options,
                (error, sources) => {
                    if (error) {
                        errorCallback(error);
                        return;
                    }

                    callback(sources);
                });
        }
    };
});

Remove developer debug window during screen share
Remove developer debug window during screen share

Right now when you try to share your screen it opens a developer window.