Skip to content

Commit

Permalink
改进:修正部分拼写错误
Browse files Browse the repository at this point in the history
  • Loading branch information
iamapig120 committed Mar 28, 2019
1 parent c71956d commit 8ca0470
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/main/mainLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const prebuildExecuteCode = executeScriptInfo => {
if (prop === "localStorage" && ${!!executePreferences.localStorage} === false) {
return undefined
}
if (prop === "XMLHttpRequest" && ${!!executePreferences.XMLHTTPRequest} === false) {
if (prop === "XMLHttpRequest" && ${!!executePreferences.XMLHttpRequest} === false) {
return undefined
}
if (prop === "WebSocket" && ${!!executePreferences.WebSocket} === false) {
Expand Down
3 changes: 2 additions & 1 deletion manager/Ping.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Ping {

_getService () {
if (!this.services) return Promise.reject(new Error('services is null'))
const choseService = localStorage.getItem('choseService')
const choseService = window.localStorage.getItem('choseService')
if (choseService) {
this.currentService =
this.serviceList.find(service => service === choseService) ||
Expand Down Expand Up @@ -110,6 +110,7 @@ class Ping {
})
}

// 这个函数没有被使用
_renderError (err) {
console.error(err)
const serverTextDom = document.getElementById('serverText')
Expand Down

0 comments on commit 8ca0470

Please sign in to comment.