diff --git a/content/6-1-x/vi-VN/docs/tutorial/online-offline-events.md b/content/6-1-x/vi-VN/docs/tutorial/online-offline-events.md index ce7da1d70d36e..e8fecf46e05e7 100644 --- a/content/6-1-x/vi-VN/docs/tutorial/online-offline-events.md +++ b/content/6-1-x/vi-VN/docs/tutorial/online-offline-events.md @@ -1,6 +1,6 @@ # Cách phát hiện sự kiện Online/Offline xảy ra trong ứng dụng -[Online and offline event](https://developer.mozilla.org/en-US/docs/Online_and_offline_events) detection can be implemented in the renderer process using the [`navigator.onLine`](http://html5index.org/Offline%20-%20NavigatorOnLine.html) attribute, part of standard HTML5 API. The `navigator.onLine` attribute returns `false` if any network requests are guaranteed to fail i.e. definitely offline (disconnected from the network). It returns `true` in all other cases. Since all other conditions return `true`, one has to be mindful of getting false positives, as we cannot assume `true` value necessarily means that Electron can access the internet. Such as in cases where the computer is running a virtualization software that has virtual ethernet adapters that are always “connected.” Therefore, if you really want to determine the internet access status of Electron, you should develop additional means for checking. +Có thể triển khai phát hiện [sự kiện trực tuyến và ngoại tuyến](https://developer.mozilla.org/en-US/docs/Online_and_offline_events) trong quá trình tái tạo bằng cách sử dụng thuộc tính [`Navigator. Online`](http://html5index.org/Offline%20-%20NavigatorOnLine.html) , một phần của API HTML5 tiêu chuẩn. Có thể triển khai phát hiện `sự kiện trực tuyến và ngoại tuyến` trong quá trình tái tạo bằng cách sử dụng thuộc tính <1>Navigator. Online , một phần của API HTML5 tiêu chuẩnpitml It returns `true` in all other cases. Since all other conditions return `true`, one has to be mindful of getting false positives, as we cannot assume `true` value necessarily means that Electron can access the internet. Such as in cases where the computer is running a virtualization software that has virtual ethernet adapters that are always “connected.” Therefore, if you really want to determine the internet access status of Electron, you should develop additional means for checking. Ví dụ: diff --git a/content/9-x-y/vi-VN/docs/tutorial/online-offline-events.md b/content/9-x-y/vi-VN/docs/tutorial/online-offline-events.md index 4ec65c3c1a8de..9d924cf4eb5a5 100644 --- a/content/9-x-y/vi-VN/docs/tutorial/online-offline-events.md +++ b/content/9-x-y/vi-VN/docs/tutorial/online-offline-events.md @@ -1,6 +1,6 @@ # Cách phát hiện sự kiện Online/Offline xảy ra trong ứng dụng -[Online and offline event](https://developer.mozilla.org/en-US/docs/Online_and_offline_events) detection can be implemented in the renderer process using the [`navigator.onLine`](http://html5index.org/Offline%20-%20NavigatorOnLine.html) attribute, part of standard HTML5 API. The `navigator.onLine` attribute returns `false` if any network requests are guaranteed to fail i.e. definitely offline (disconnected from the network). It returns `true` in all other cases. Since all other conditions return `true`, one has to be mindful of getting false positives, as we cannot assume `true` value necessarily means that Electron can access the internet. Such as in cases where the computer is running a virtualization software that has virtual ethernet adapters that are always “connected.” Therefore, if you really want to determine the internet access status of Electron, you should develop additional means for checking. +Có thể triển khai phát hiện [sự kiện trực tuyến và ngoại tuyến](https://developer.mozilla.org/en-US/docs/Online_and_offline_events) trong quá trình tái tạo bằng cách sử dụng thuộc tính [`Navigator. Online`](http://html5index.org/Offline%20-%20NavigatorOnLine.html) , một phần của API HTML5 tiêu chuẩn. Có thể triển khai phát hiện `sự kiện trực tuyến và ngoại tuyến` trong quá trình tái tạo bằng cách sử dụng thuộc tính <1>Navigator. Online , một phần của API HTML5 tiêu chuẩnpitml It returns `true` in all other cases. Since all other conditions return `true`, one has to be mindful of getting false positives, as we cannot assume `true` value necessarily means that Electron can access the internet. Such as in cases where the computer is running a virtualization software that has virtual ethernet adapters that are always “connected.” Therefore, if you really want to determine the internet access status of Electron, you should develop additional means for checking. Ví dụ: diff --git a/content/current/vi-VN/docs/tutorial/online-offline-events.md b/content/current/vi-VN/docs/tutorial/online-offline-events.md index 4ec65c3c1a8de..9d924cf4eb5a5 100644 --- a/content/current/vi-VN/docs/tutorial/online-offline-events.md +++ b/content/current/vi-VN/docs/tutorial/online-offline-events.md @@ -1,6 +1,6 @@ # Cách phát hiện sự kiện Online/Offline xảy ra trong ứng dụng -[Online and offline event](https://developer.mozilla.org/en-US/docs/Online_and_offline_events) detection can be implemented in the renderer process using the [`navigator.onLine`](http://html5index.org/Offline%20-%20NavigatorOnLine.html) attribute, part of standard HTML5 API. The `navigator.onLine` attribute returns `false` if any network requests are guaranteed to fail i.e. definitely offline (disconnected from the network). It returns `true` in all other cases. Since all other conditions return `true`, one has to be mindful of getting false positives, as we cannot assume `true` value necessarily means that Electron can access the internet. Such as in cases where the computer is running a virtualization software that has virtual ethernet adapters that are always “connected.” Therefore, if you really want to determine the internet access status of Electron, you should develop additional means for checking. +Có thể triển khai phát hiện [sự kiện trực tuyến và ngoại tuyến](https://developer.mozilla.org/en-US/docs/Online_and_offline_events) trong quá trình tái tạo bằng cách sử dụng thuộc tính [`Navigator. Online`](http://html5index.org/Offline%20-%20NavigatorOnLine.html) , một phần của API HTML5 tiêu chuẩn. Có thể triển khai phát hiện `sự kiện trực tuyến và ngoại tuyến` trong quá trình tái tạo bằng cách sử dụng thuộc tính <1>Navigator. Online , một phần của API HTML5 tiêu chuẩnpitml It returns `true` in all other cases. Since all other conditions return `true`, one has to be mindful of getting false positives, as we cannot assume `true` value necessarily means that Electron can access the internet. Such as in cases where the computer is running a virtualization software that has virtual ethernet adapters that are always “connected.” Therefore, if you really want to determine the internet access status of Electron, you should develop additional means for checking. Ví dụ: