2016-02-15 33 views
0

我正在使用這段代碼來獲取客戶端。但它仍然是客戶不匹配。無法在Firefox的FetchEvent中找到客戶端44.0.2

this.addEventListener('fetch', function(event) { 
var client=null; 
if(event.client != null){ 
    client=event.client; 
}else if(event.clientId!=null){ 
    client=Clients.get(event.clientId); 
}else{ 
    console.log("Client Not Matched."); 
} 

}

回答