diff --git a/platform/safari/vapi-common.js b/platform/safari/vapi-common.js index 505815b5c..4a607500e 100644 --- a/platform/safari/vapi-common.js +++ b/platform/safari/vapi-common.js @@ -36,7 +36,7 @@ self.vAPI = self.vAPI || {}; var setScriptDirection = function(language) { document.body.setAttribute( 'dir', - ~['ar', 'he', 'fa', 'ps', 'ur'].indexOf(language) ? 'rtl' : 'ltr' + ['ar', 'he', 'fa', 'ps', 'ur'].indexOf(language) !== -1 ? 'rtl' : 'ltr' ); }; @@ -78,11 +78,11 @@ vAPI.getURL = function(path) { // first language is the default vAPI.i18nData = [ 'en', 'ar', 'cs', 'da', 'de', 'el', 'es', 'et', 'fi', 'fil', 'fr', 'he', - 'hi', 'hr', 'hu', 'id', 'it', 'ja', 'mr', 'nb', 'nl', 'pl', 'pt_BR', - 'pt_PT', 'ro', 'ru', 'sv', 'tr', 'uk', 'vi', 'zh_CN' + 'hi', 'hr', 'hu', 'id', 'it', 'ja', 'mr', 'nb', 'nl', 'pl', 'pt-BR', + 'pt-PT', 'ro', 'ru', 'sv', 'tr', 'uk', 'vi', 'zh-CN' ]; -vAPI.i18n = navigator.language.replace('-', '_'); +vAPI.i18n = navigator.language; if (vAPI.i18nData.indexOf(vAPI.i18n) === -1) { vAPI.i18n = vAPI.i18n.slice(0, 2); diff --git a/src/css/popup.css b/src/css/popup.css index 62f8b11f5..3a832fd2e 100644 --- a/src/css/popup.css +++ b/src/css/popup.css @@ -84,14 +84,14 @@ p { background-color: #fffff4; border: 1px solid #888; border-radius: 5px; - bottom: 20vh; + bottom: 20%; box-shadow: 1px 1px 2px 0 rgba(0,0,0,0.8); display: none; font-size: small; - left: 8vw; + left: 8%; padding: 0.25em; position: fixed; - right: 8vw; + right: 8%; text-align: center; } .dynamicFiltering div:not(.blocked):hover > .tip:nth-of-type(1) {