Editor (WYSIWYG)
Best posts made by donvie
-
How to add plugins in capacitor android
Register the plugin in com.companyname.appname.MainActivity#onCreate
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); List<Class<? extends Plugin>> additionalPlugins = new ArrayList<>(); // Additional plugins you've installed go here // Ex: additionalPlugins.add(TotallyAwesomePlugin.class); additionalPlugins.add(SmsManagerPlugin.class); // Initializes the Bridge this.init(savedInstanceState, additionalPlugins); }
Latest posts made by donvie
-
RE: Tray icon not showing in production(Electron)
NEED HELP!! Can someone experienced this problem
-
Tray icon not showing in production(Electron)
Tray icon not showing in production but in development the icon it is showing. i am using mac to build the electron app.
Thank you
import { app, BrowserWindow, nativeTheme, Menu, Tray } from 'electron' const path = require('path') try { if (process.platform === 'win32' && nativeTheme.shouldUseDarkColors === true) { require('fs').unlinkSync(require('path').join(app.getPath('userData'), 'DevTools Extensions')) } } catch (_) { } /** * Set `__statics` path to static files in production; * The reason we are setting it here is that the path needs to be evaluated at runtime */ if (process.env.PROD) { global.__statics = __dirname } let mainWindow function createWindow () { /** * Initial window options */ mainWindow = new BrowserWindow({ width: 350, height: 600, useContentSize: true, frame: false, minWidth: 240, minHeight: 500, titleBarStyle: 'hidden', webPreferences: { // Change from /quasar.conf.js > electron > nodeIntegration; // More info: https://quasar.dev/quasar-cli/developing-electron-apps/node-integration nodeIntegration: process.env.QUASAR_NODE_INTEGRATION, nodeIntegrationInWorker: process.env.QUASAR_NODE_INTEGRATION, // More info: /quasar-cli/developing-electron-apps/electron-preload-script // preload: path.resolve(__dirname, 'electron-preload.js') } }) mainWindow.setBackgroundColor('#f5f5f5') mainWindow.loadURL(process.env.APP_URL) mainWindow.on('closed', () => { mainWindow = null }) } let tray = null app.whenReady().then(() => { tray = new Tray(path.resolve(__statics,'icons', 'favicon-16x16.png')) const contextMenu = Menu.buildFromTemplate([ { label: 'Light Mode / Dark Mode', click: function (item) { mainWindow.webContents.send('darkMode') } } ]) tray.setToolTip('This is my application.') tray.setContextMenu(contextMenu) }) app.on('ready', createWindow) app.on('window-all-closed', () => { if (process.platform !== 'darwin') { app.quit() } }) app.on('activate', () => { if (mainWindow === null) { createWindow() } })
-
How to add plugins in capacitor android
Register the plugin in com.companyname.appname.MainActivity#onCreate
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); List<Class<? extends Plugin>> additionalPlugins = new ArrayList<>(); // Additional plugins you've installed go here // Ex: additionalPlugins.add(TotallyAwesomePlugin.class); additionalPlugins.add(SmsManagerPlugin.class); // Initializes the Bridge this.init(savedInstanceState, additionalPlugins); }
-
Need help!! Got this error about cookies
A cookie associated with a cross-site resource at http://localhost:8080/ was set without the
SameSite
attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set withSameSite=None
andSecure
. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032. -
RE: How to send files and images in chat message?
up? Anyone can help me thanks in advance
-
How to send files and images in chat message?
How to send files and images in chat message?