reduce frontend log spam from debug messages
This commit is contained in:
@@ -28,7 +28,7 @@ console.log('Sharkey Embed');
|
||||
//#region Embedパラメータの取得・パース
|
||||
const params = new URLSearchParams(location.search);
|
||||
const embedParams = parseEmbedParams(params);
|
||||
if (_DEV_) console.log(embedParams);
|
||||
if (_DEV_) console.debug(embedParams);
|
||||
//#endregion
|
||||
|
||||
//#region テーマ
|
||||
|
||||
@@ -28,7 +28,7 @@ let defaultIframeId: string | null = null;
|
||||
export function setIframeId(id: string): void {
|
||||
if (defaultIframeId != null) return;
|
||||
|
||||
if (_DEV_) console.log('setIframeId', id);
|
||||
if (_DEV_) console.debug('setIframeId', id);
|
||||
defaultIframeId = id;
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ export function postMessageToParentWindow<T extends PostMessageEventType = PostM
|
||||
if (_iframeId == null) {
|
||||
_iframeId = defaultIframeId;
|
||||
}
|
||||
if (_DEV_) console.log('postMessageToParentWindow', type, _iframeId, payload);
|
||||
if (_DEV_) console.debug('postMessageToParentWindow', type, _iframeId, payload);
|
||||
window.parent.postMessage({
|
||||
type,
|
||||
iframeId: _iframeId,
|
||||
|
||||
@@ -54,7 +54,7 @@ function safeURIDecode(str: string): string {
|
||||
|
||||
const page = location.pathname.split('/')[2];
|
||||
const contentId = safeURIDecode(location.pathname.split('/')[3]);
|
||||
if (_DEV_) console.log(page, contentId);
|
||||
if (_DEV_) console.debug(page, contentId);
|
||||
|
||||
const embedParams = inject(DI.embedParams, defaultEmbedParams);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user