|
|
@ -348,10 +348,12 @@ var pEpOptions = { |
|
|
|
}, |
|
|
|
|
|
|
|
browseForKey() { |
|
|
|
var fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker); |
|
|
|
this.cancelKey(); |
|
|
|
|
|
|
|
let fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker); |
|
|
|
|
|
|
|
// If we already have a key, then use the path.
|
|
|
|
var localFile = this.convertURLToLocalFile(document.getElementById("keyLocation").value); |
|
|
|
let localFile = this.convertURLToLocalFile(document.getElementById("keyLocation").value); |
|
|
|
if (localFile) { |
|
|
|
fp.displayDirectory = localFile.parent; |
|
|
|
} |
|
|
|