public
Description: tombloo
Clone URL: git://github.com/to/tombloo.git
Click here to lend your support to: tombloo and make a donation at www.pledgie.com !
 * JS+Photo - image linkのエラーを修正
to (author)
Sat Aug 30 00:06:32 -0700 2008
commit  90bd8057c12af52422f4dd226b282d258a915deb
tree    b6bfa80c9f0a5f665bee68dea7a865d5ce0b2fbb
parent  fa904c72488a36885fdeab6115ff1633671b73fe
...
339
340
341
342
343
 
 
 
 
 
 
 
344
345
346
...
339
340
341
 
 
342
343
344
345
346
347
348
349
350
351
0
@@ -339,8 +339,13 @@ function createURI(path){
0
   try{
0
     var path = (path instanceof IFile) ? path : new LocalFile(path);
0
     return IOService.newFileURI(path)  ;
0
- }catch(e if e.name=='NS_ERROR_FILE_UNRECOGNIZED_PATH'){}
0
- return IOService.newURI(path, null, null).QueryInterface(Ci.nsIURL);
0
+ }catch(e){}
0
+
0
+ try{
0
+ return IOService.newURI(path, null, null).QueryInterface(Ci.nsIURL);
0
+ }catch(e){
0
+ // javascript:などで発生するエラーを無視する
0
+ }
0
 }
0
 
0
 /**

Comments

    No one has commented yet.