dsg
INSERT INTO `cp_filejs` (`id`,`app`,`path`,`modul`,`file_name`,`content`) VALUES ('293','2','u6/driver','','js/api/consts.js---','export const API_URL = \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'https://www.carevents.com/uk\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'\r\nexport const TIMEOUT_MS_LOW = 15 * 1000 // 15 seconds\r\nexport const TIMEOUT_MS_HIGH = 30 * 1000 // 30 seconds\r\nexport const TIMEOUT_MS_HIGHER = 60 * 1000 // 60 seconds\r\n\r\nexport const sendRNMessage = ({\r\n page,\r\n type,\r\n user_id,\r\n association_id,\r\n association_type\r\n}) => {\r\n /*\r\n if (typeof window.ReactNativeWebView === \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'undefined\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\') {\r\n console.warn(`This is not a react native webview, failed to send message: ${type} - ${user_id}`)\r\n }\r\n\r\n try {\r\n if (window !== undefined && window.ReactNativeWebView) {\r\n window.ReactNativeWebView.postMessage(JSON.stringify({\r\n type,\r\n page,\r\n user_id,\r\n association_id,\r\n association_type\r\n }))\r\n } else {\r\n console.warn(`Failed to send message: ${type} - ${user_id}`)\r\n }\r\n } catch (e) {\r\n console.error(e)\r\n }\r\n */\r\n}');
Copy This

Warning: file_get_contents(/home/u340524018/domains/agniaga.com/public_html/sub/u6/driver/js/api/consts.js---): Failed to open stream: No such file or directory in /home/u340524018/domains/agniaga.com/public_html/sub/u2/cp/inc.filejs.php on line 190
export const API_URL = \\\\\\\\\\\\\\\'https://www.carevents.com/uk\\\\\\\\\\\\\\\'
export const TIMEOUT_MS_LOW = 15 * 1000 // 15 seconds
export const TIMEOUT_MS_HIGH = 30 * 1000 // 30 seconds
export const TIMEOUT_MS_HIGHER = 60 * 1000 // 60 seconds

export const sendRNMessage = ({
    page,
    type,
    user_id,
    association_id,
    association_type
}) => {
    /*
    if (typeof window.ReactNativeWebView === \\\\\\\\\\\\\\\'undefined\\\\\\\\\\\\\\\') {
        console.warn(`This is not a react native webview, failed to send message: ${type} - ${user_id}`)
    }

    try {
        if (window !== undefined && window.ReactNativeWebView) {
            window.ReactNativeWebView.postMessage(JSON.stringify({
                type,
                page,
                user_id,
                association_id,
                association_type
            }))
        } else {
            console.warn(`Failed to send message: ${type} - ${user_id}`)
        }
    } catch (e) {
        console.error(e)
    }
    */
}
Add JS Function Name