Skip to content

Commit

Permalink
Remove Bento experiments from amp-wordpress-embed (#37237)
Browse files Browse the repository at this point in the history
The `amp-wordpress-embed` component was created (in #34948) without any non-Bento version, so the Bento experiment is currently blocking it from being usable on valid AMP pages. This removes the experiment.
  • Loading branch information
westonruter committed Dec 17, 2021
1 parent 2092cad commit e3242ec
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions extensions/amp-wordpress-embed/1.0/amp-wordpress-embed.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import {dict} from '#core/types/object';

import {isExperimentOn} from '#experiments';

import {userAssert} from '#utils/log';

import {BaseElement} from './base-element';

/** @const {string} */
Expand All @@ -12,11 +8,6 @@ const TAG = 'amp-wordpress-embed';
class AmpWordPressEmbed extends BaseElement {
/** @override */
isLayoutSupported(layout) {
userAssert(
isExperimentOn(this.win, 'bento') ||
isExperimentOn(this.win, 'bento-wordpress-embed'),
'expected global "bento" or specific "bento-wordpress-embed" experiment to be enabled'
);
return super.isLayoutSupported(layout);
}

Expand Down

0 comments on commit e3242ec

Please sign in to comment.