Skip to content

Commit

Permalink
Remove GB plugin condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Nov 6, 2024
1 parent d9234e4 commit 7da6a4b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/edit-post/src/components/layout/use-should-iframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,10 @@ import { store as blockEditorStore } from '@wordpress/block-editor';
*/
import { unlock } from '../../lock-unlock';

const isGutenbergPlugin = globalThis.IS_GUTENBERG_PLUGIN ? true : false;

export function useShouldIframe() {
return useSelect( ( select ) => {
// In the Gutenberg plugin, which acts as a testing ground and is a
// bit more experimental than core, we always use the iframe.
if ( isGutenbergPlugin ) {
return true;
}

const { getEditorSettings, getCurrentPostType, getDeviceType } =
select( editorStore );

return (
// If the theme is block based, we ALWAYS use the iframe for
// consistency across the post and site editor. The iframe was
Expand Down

0 comments on commit 7da6a4b

Please sign in to comment.