Files
Fin-Track/backend/node_modules/axios/lib/helpers/isURLSameOrigin.js
Mann Patel 807dd273fd version 1
the reminder not showing content on the card at dashboard view and the quizes are hardcoded must move to the db make api's for it
2025-02-16 00:05:12 -07:00

15 lines
420 B
JavaScript

import platform from '../platform/index.js';
export default platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
url = new URL(url, platform.origin);
return (
origin.protocol === url.protocol &&
origin.host === url.host &&
(isMSIE || origin.port === url.port)
);
})(
new URL(platform.origin),
platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
) : () => true;