From 10496c9619301394ccd4d1d311baf8cb746abf52 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 12 Jun 2015 04:20:46 +0000 Subject: [PATCH] * fix chinese mainland language code --- website/getting-started/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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