Skip to content

Commit

Permalink
Remove console.log used for debugging purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
psrpinto committed Aug 16, 2024
1 parent 306fe2b commit aa35972
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion src/extension/content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ const insertViaWpRestApi = async () => {
// 'page': '/wp-json/wp/v2/pages',
};
for ( const postType in postTypes ) {
console.log( postTypes[ postType ] );
let page = 1,
total = 1;
do {
Expand Down
4 changes: 1 addition & 3 deletions src/extension/sidebar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const iframeId = 'playground';
window.playground = await initPlayground( iframeId );

const relayToPlayground = function ( response ) {
console.log( response, chrome.runtime.lastError );
if ( response && response.stepId ) {
document.getElementById( iframeId ).contentWindow.postMessage(
{
Expand All @@ -17,8 +16,7 @@ const relayToPlayground = function ( response ) {
);
}
if ( response && response.code && window.playground ) {
console.log( response.code );
console.log( window.playground.run( response ) );
window.playground.run( response );
}
};

Expand Down
3 changes: 0 additions & 3 deletions src/plugin/scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@ function startImport() {
}

function handleStartImportResponse( event ) {
console.log( event );
if ( typeof event.data !== 'object' || event.data.type !== 'relay' ) {
return;
}
const data = event.data.data;
console.log( data );
if ( typeof data.siteTitle !== 'undefined' ) {
document.getElementById( 'site-title' ).value = data.siteTitle;
}
Expand Down Expand Up @@ -72,7 +70,6 @@ function handleStartImportResponse( event ) {
}

function handleMessage( event ) {
console.log( event );
if ( typeof event.data !== 'object' || event.data.type !== 'relay' ) {
return;
}
Expand Down

0 comments on commit aa35972

Please sign in to comment.