mirror of
https://github.com/moparisthebest/mail
synced 2024-11-04 16:25:07 -05:00
change key server url in stable channel
This commit is contained in:
parent
e316a89d24
commit
ae2b46ed26
@ -277,7 +277,8 @@ module.exports = function(grunt) {
|
||||
patchManifest({
|
||||
suffix: ' (Alpha)',
|
||||
version: version,
|
||||
deleteKey: true
|
||||
deleteKey: true,
|
||||
keyServer: 'https://keys.whiteout.io'
|
||||
});
|
||||
});
|
||||
|
||||
@ -295,6 +296,10 @@ module.exports = function(grunt) {
|
||||
if (options.client_id) {
|
||||
manifest.oauth2.client_id = options.client_id;
|
||||
}
|
||||
if (options.keyServer) {
|
||||
var ksIndex = manifest.permissions.indexOf('https://keys-test.whiteout.io');
|
||||
manifest.permissions[ksIndex] = options.keyServer;
|
||||
}
|
||||
if (options.deleteKey) {
|
||||
delete manifest.key;
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ define(function(require) {
|
||||
try {
|
||||
var manifest = chrome.runtime.getManifest();
|
||||
cloudUrl = _.find(manifest.permissions, function(permission) {
|
||||
return typeof permission === 'string' && permission.indexOf('http') === 0;
|
||||
return typeof permission === 'string' && permission.indexOf('https://keys') === 0;
|
||||
});
|
||||
clientId = manifest.oauth2.client_id;
|
||||
} catch (e) {}
|
||||
|
Loading…
Reference in New Issue
Block a user