Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nobid Analytics Adapter : import logMessage #11833

Merged
merged 4 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions modules/nobidAnalyticsAdapter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {deepClone, logError, getParameterByName} from '../src/utils.js';
import {deepClone, logError, getParameterByName, logMessage} from '../src/utils.js';
import {ajax} from '../src/ajax.js';
import {getStorageManager} from '../src/storageManager.js';
import adapter from '../libraries/analyticsAdapter/AnalyticsAdapter.js';
Expand Down Expand Up @@ -26,8 +26,7 @@ const {
AD_RENDER_SUCCEEDED
} = EVENTS;
function log (msg) {
// eslint-disable-next-line no-console
console.log(`%cNoBid Analytics ${VERSION}`, 'padding: 2px 8px 2px 8px; background-color:#f50057; color: white', msg);
logMessage(`%cNoBid Analytics ${VERSION}: ${msg}`);
}
function isJson (str) {
return str && str.startsWith('{') && str.endsWith('}');
Expand Down
1 change: 0 additions & 1 deletion modules/uid2IdSystem.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-console */
/**
* This module adds uid2 ID support to the User ID module
* The {@link module:modules/userId} module is required.
Expand Down
1 change: 0 additions & 1 deletion modules/uid2IdSystem_shared.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-console */
import { ajax } from '../src/ajax.js';
import { cyrb53Hash } from '../src/utils.js';

Expand Down
Loading