fix(windows): fix some startup problem under windows platform
This commit is contained in:
7
src/background/detectOneByte.js
Normal file
7
src/background/detectOneByte.js
Normal file
@ -0,0 +1,7 @@
|
||||
module.exports = (str) => {
|
||||
for(let i = 0; i < str.length; i++) {
|
||||
if(str.charCodeAt(i) > 191)
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
Reference in New Issue
Block a user