1
0

reduce frontend log spam from debug messages

This commit is contained in:
Hazelnoot
2025-05-10 13:20:44 -04:00
parent f42f9ee0b5
commit 87dc73d700
22 changed files with 32 additions and 32 deletions
+1 -1
View File
@@ -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 テーマ
+2 -2
View File
@@ -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,
+1 -1
View File
@@ -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);