@amplitude/analytics-browser
Version:
Official Amplitude SDK for Web
22 lines • 1.16 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.resetNotify = exports.detNotify = void 0;
var notified = false;
var detNotify = function (config) {
if (notified || config.defaultTracking !== undefined) {
return;
}
var message = "`options.defaultTracking` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to `options.defaultTracking`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:\n\namplitude.init(<YOUR_API_KEY>, {\n defaultTracking: true,\n});\n\nVisit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details.";
config.loggerProvider.warn(message);
notified = true;
};
exports.detNotify = detNotify;
/**
* @private
* This function is meant for testing purposes only
*/
var resetNotify = function () {
notified = false;
};
exports.resetNotify = resetNotify;
//# sourceMappingURL=det-notification.js.map