diff --git a/src/document.js b/src/document.js index b55894d8e..e8d275927 100644 --- a/src/document.js +++ b/src/document.js @@ -24,7 +24,7 @@ let checkingProxyStatus = false const checkProxyStatus = () => { checkingProxyStatus = true - const url = Config.get('urlsrc').substr(0, Config.get('urlsrc').indexOf('proxy.php') + 'proxy.php'.length) + const url = Config.get('urlsrc').slice(0, Config.get('urlsrc').indexOf('proxy.php') + 'proxy.php'.length) $.get(url + '?status').done(function(val) { if (val && val.status && val.status !== 'OK') { if (val.status === 'starting' || val.status === 'stopped') { diff --git a/src/view/Office.vue b/src/view/Office.vue index d4a5350bf..e80f179e5 100644 --- a/src/view/Office.vue +++ b/src/view/Office.vue @@ -81,7 +81,7 @@ export default { }, viewColor() { return view => ({ - 'border-color': '#' + ('000000' + Number(view.Color).toString(16)).substr(-6), + 'border-color': '#' + ('000000' + Number(view.Color).toString(16)).slice(-6), 'border-width': '2px', 'border-style': 'solid', })