Skip to content

Commit

Permalink
use named function
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpeixe committed Feb 10, 2022
1 parent 6d6553f commit e752a13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/iframe/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function useEditorStylesCompat() {
}
} );

const appendStyles = () => {
function appendStyles() {
const doc = node.contentDocument;

if (
Expand All @@ -112,7 +112,7 @@ function useEditorStylesCompat() {
} );

return true;
};
}

if ( appendStyles() ) {
return;
Expand Down

0 comments on commit e752a13

Please sign in to comment.