Verifique se o URL é http ou https javascript
You can make use of `window` keyword
=> window.location.protocol
D@RK$T@R
You can make use of `window` keyword
=> window.location.protocol