update AI engines

This commit is contained in:
James Feng Cao 2024-06-29 22:04:44 +08:00
parent 6fc7d22514
commit f3ea023929
7 changed files with 16 additions and 12 deletions

View file

@ -151,7 +151,10 @@ You should have received a copy of the GNU General Public License along with thi
function cbStartLoading(e){
if(!bDomainCSS) return;
let tab = e.target;
let domain = new URL(tab.getURL()).hostname;
let domain;
try{
domain = new URL(tab.getURL()).hostname;
}catch(e){return;}
let jsF = path.join(sitecssP, domain+".js");
loadJSFile(tab,jsF);
jsF = path.join(sitecssP, domain+".css");