"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/app/settings/General.js" between
mailvelope-4.2.0.tar.gz and mailvelope-4.2.1.tar.gz

About: Mailvelope is a browser extension offering email encryption with PGP (for Firefox and Chrome).

General.js  (mailvelope-4.2.0):General.js  (mailvelope-4.2.1)
skipping to change at line 45 skipping to change at line 45
modified: false, modified: false,
nativeMessaging: true nativeMessaging: true
}; };
this.handleCheck = this.handleCheck.bind(this); this.handleCheck = this.handleCheck.bind(this);
this.handleSave = this.handleSave.bind(this); this.handleSave = this.handleSave.bind(this);
this.handleCancel = this.handleCancel.bind(this); this.handleCancel = this.handleCancel.bind(this);
} }
componentDidMount() { componentDidMount() {
this.loadPrefs(); this.loadPrefs();
chrome.permissions.contains({permissions: ['nativeMessaging']}, nativeMessag ing => this.setState({nativeMessaging})); chrome.permissions && chrome.permissions.contains({permissions: ['nativeMess aging']}, nativeMessaging => this.setState({nativeMessaging}));
} }
async loadPrefs() { async loadPrefs() {
const {general} = await port.send('get-prefs'); const {general} = await port.send('get-prefs');
this.setState({ this.setState({
auto_add_primary: general.auto_add_primary, auto_add_primary: general.auto_add_primary,
auto_sign_msg: general.auto_sign_msg, auto_sign_msg: general.auto_sign_msg,
prefer_gnupg: general.prefer_gnupg, prefer_gnupg: general.prefer_gnupg,
modified: false modified: false
}); });
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)