From 15d1c211c6f6134798ab481ffe34d9391e5c79b2 Mon Sep 17 00:00:00 2001 From: Pomax Date: Thu, 16 Feb 2017 10:23:21 -0800 Subject: [PATCH] . --- index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 371a03ad..2cfc81d8 100644 --- a/index.html +++ b/index.html @@ -216,7 +216,10 @@ var lpos = lang.indexOf(ms); var linfix = ''; if (lpos !== -1) { - linfix = "." + lang.substring(lpos + ms.length); + let lcode = lang.substring(lpos + ms.length); + if (lcode !== 'en-GB') { + linfix = "." + lcode + } } var s = document.createElement("script"); s.src = "article" + linfix+ ".js?ts=" + Date.now();