Handle unsupported navigator.language on IE

This commit is contained in:
Tom Morris 2014-07-03 09:05:39 -04:00
parent 07b787f535
commit 7f1ee08e5f
3 changed files with 3 additions and 6 deletions

View File

@ -37,8 +37,7 @@ var Refine = {
actionAreas: []
};
var lang = navigator.language.split("-")[0]
|| navigator.userLanguage.split("-")[0];
var lang = (navigator.language|| navigator.userLanguage).split("-")[0];
var dictionary = "";
$.ajax({
url : "/command/core/load-language?",

View File

@ -33,8 +33,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
var preferenceUIs = [];
var lang = navigator.language.split("-")[0]
|| navigator.userLanguage.split("-")[0];
var lang = (navigator.language|| navigator.userLanguage).split("-")[0];
var dictionary = "";
$.ajax({
url : "/command/core/load-language?",

View File

@ -34,8 +34,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
var theProject;
var ui = {};
var lang = navigator.language.split("-")[0]
|| navigator.userLanguage.split("-")[0];
var lang = (navigator.language|| navigator.userLanguage).split("-")[0];
var dictionary = "";
$.ajax({
url : "/command/core/load-language?",