diff --git a/website/getting-started/index.js b/website/getting-started/index.js index f7ddca3c..0e9e2059 100644 --- a/website/getting-started/index.js +++ b/website/getting-started/index.js @@ -49,7 +49,7 @@ function getData() { }] var links = location.hash.length > 0 - var youtube = navigator.language != 'zh-CN' // YouTube is blocked in China (mainland) + var youtube = (/zh.CN/i).test(navigator.language) // YouTube is blocked in China (mainland) if (links) { data = data.slice(0, 5) // use only tutorial images