mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-10-01 16:30:46 +00:00
Removed extraneous privilege call
This commit is contained in:
parent
0d4ea62ef8
commit
6a0998059e
@ -64,14 +64,12 @@ var TiddlyFox = {
|
|||||||
saveFile: function(filePath,content) {
|
saveFile: function(filePath,content) {
|
||||||
// Attempt to convert the filepath to a proper UTF-8 string
|
// Attempt to convert the filepath to a proper UTF-8 string
|
||||||
try {
|
try {
|
||||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
|
||||||
var converter = Components.classes["@mozilla.org/intl/utf8converterservice;1"].getService(Components.interfaces.nsIUTF8ConverterService);
|
var converter = Components.classes["@mozilla.org/intl/utf8converterservice;1"].getService(Components.interfaces.nsIUTF8ConverterService);
|
||||||
filePath = converter.convertURISpecToUTF8(filePath,"UTF-8");
|
filePath = converter.convertURISpecToUTF8(filePath,"UTF-8");
|
||||||
} catch(ex) {
|
} catch(ex) {
|
||||||
}
|
}
|
||||||
// Save the file
|
// Save the file
|
||||||
try {
|
try {
|
||||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
|
||||||
var file = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
|
var file = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
|
||||||
file.initWithPath(filePath);
|
file.initWithPath(filePath);
|
||||||
if(!file.exists())
|
if(!file.exists())
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user