التعامل مع العمل المحلي (localhost) بطريقة مختلفة
if (location.hostname === "localhost" || location.hostname === "127.0.0.1") {
this.countEl = 0;
} else {
this.appService.getVisitCount().subscribe(res => {
this.countEl = res;
});
}
تعليقات
إرسال تعليق