We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a222e8 commit 1c66093Copy full SHA for 1c66093
src/services/index.js
@@ -3,14 +3,17 @@ import Correios from './correios'
3
import ViaCep from './viacep'
4
import { PROXY_URL } from '../utils/consts'
5
6
+/* istanbul ignore next */
7
function isBrowser(){
8
return typeof window !== 'undefined';
9
}
10
11
12
function isHttps(){
13
return typeof location !== 'undefined' && location.protocol === 'https:'
14
15
16
17
function shouldUseProxy(){
18
return isBrowser() && !isHttps()
19
0 commit comments