Moved location.protocol check to supported variable