Browse Source

Fixed exit on Master Password screen

Fixes #3072
pull/3102/head
Ramiro Saenz 4 years ago
parent
commit
04413c81eb
  1. 5
      electron/main.js
  2. 12
      masterpassword.html

5
electron/main.js

@ -1,6 +1,6 @@
'use strict';
const {app, protocol, BrowserWindow, dialog, shell, Menu, ipcMain, nativeImage, session} = require('electron');
const {app, BrowserWindow, shell, Menu, ipcMain, nativeImage, session} = require('electron');
// Tray
const tray = require('./tray');
// AutoLaunch
@ -233,7 +233,8 @@ function createMasterPasswordWindow() {
backgroundColor: '#0675A0'
,frame: false
,webPreferences: {
nodeIntegration: true
nodeIntegration: true
,enableRemoteModule: true
}
});
// Open the DevTools.

12
masterpassword.html

@ -17,15 +17,15 @@
function handlePaste(e) {
var clipboardData, pastedData;
// Stop data actually being pasted into div
e.stopPropagation();
e.preventDefault();
// Stop data actually being pasted into div
e.stopPropagation();
e.preventDefault();
// Get pasted data via clipboard API
clipboardData = e.clipboardData || window.clipboardData;
// Get pasted data via clipboard API
clipboardData = e.clipboardData || window.clipboardData;
pastedData = clipboardData.getData('Text');
document.getElementsByTagName('input')[0].value += pastedData
// Do whatever with pasteddata
// Do whatever with pasteddata
}
function doValidate(e, value) {
document.getElementById('wrong-pass').style.visibility = 'hidden'

Loading…
Cancel
Save