Your IP : 216.73.216.123


Current Path : /home/smartbloks/.trash/extendify/src/Assist/util/
Upload File :
Current File : /home/smartbloks/.trash/extendify/src/Assist/util/util.js

export const maybeHttps = (url) => {
    try {
        const transformed = new URL(url)
        if (window.location.protocol === 'https:') {
            transformed.protocol = 'https:'
        }
        return transformed.toString()
    } catch (e) {
        return url
    }
}