flyson
flyso****@users*****
2006年 3月 22日 (水) 07:46:50 JST
Index: bbs2chreader/content/bbs2chreader/bbsmenu/page.js diff -u bbs2chreader/content/bbs2chreader/bbsmenu/page.js:1.3 bbs2chreader/content/bbs2chreader/bbsmenu/page.js:1.4 --- bbs2chreader/content/bbs2chreader/bbsmenu/page.js:1.3 Sat Feb 11 19:29:00 2006 +++ bbs2chreader/content/bbs2chreader/bbsmenu/page.js Wed Mar 22 07:46:50 2006 @@ -17,11 +17,16 @@ gBbsMenuXMLFile.appendRelativePath("bbsmenu.xml"); - gHistoryRDF = new Bbs2chRDF(); - gHistoryRDF.initWithRDFURL("rdf:history"); - var btnHistory = document.getElementById("btnHistory"); - btnHistory.hidden = !gBbs2chService.pref.getBoolPref( + if("@mozilla.org/rdf/datasource;1?name=history" in Components.classes){ + gHistoryRDF = new Bbs2chRDF(); + gHistoryRDF.initWithRDFURL("rdf:history"); + var btnHistory = document.getElementById("btnHistory"); + btnHistory.hidden = !gBbs2chService.pref.getBoolPref( "fls.bbs2chreader.bbsmenu_historymenu_show"); + }else{ + var btnHistory = document.getElementById("btnHistory"); + btnHistory.hidden = true; + } // c[ÌôsÉFð¯é if(gBbs2chService.pref.getBoolPref("fls.bbs2chreader.enable_tree_stripe2"))