Skip to content

Commit

Permalink
🐛Update beop URLs after domain change (#28098)
Browse files Browse the repository at this point in the history
* Update beop URLs after domain change

* Lint
  • Loading branch information
bloodyowl committed Apr 29, 2020
1 parent a3f1747 commit 11036b1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion 3p/beopinion.js
Expand Up @@ -25,7 +25,7 @@ import {setStyles} from '../src/style';
* @param {!Window} global
*/
function getBeOpinion(global) {
loadScript(global, 'https://widget.beopinion.com/sdk.js', function () {});
loadScript(global, 'https://widget.beop.io/sdk.js', function () {});
}

/**
Expand Down
8 changes: 4 additions & 4 deletions ads/_config.js
Expand Up @@ -309,11 +309,11 @@ const adConfig = jsonConfiguration({
},

'beopinion': {
prefetch: 'https://widget.beopinion.com/sdk.js',
prefetch: 'https://widget.beop.io/sdk.js',
preconnect: [
'https://t.beopinion.com',
'https://s.beopinion.com',
'https://data.beopinion.com',
'https://t.beop.io',
'https://s.beop.io',
'https://data.beop.io',
],
renderStartImplemented: true,
},
Expand Down
12 changes: 4 additions & 8 deletions extensions/amp-beopinion/0.1/amp-beopinion.js
Expand Up @@ -42,16 +42,12 @@ class AmpBeOpinion extends AMP.BaseElement {
// Hosts the script that renders widgets.
preconnect.preload(
this.getAmpDoc(),
'https://widget.beopinion.com/sdk.js',
'https://widget.beop.io/sdk.js',
'script'
);
preconnect.url(this.getAmpDoc(), 'https://s.beopinion.com', opt_onLayout);
preconnect.url(this.getAmpDoc(), 'https://t.beopinion.com', opt_onLayout);
preconnect.url(
this.getAmpDoc(),
'https://data.beopinion.com',
opt_onLayout
);
preconnect.url(this.getAmpDoc(), 'https://s.beop.io', opt_onLayout);
preconnect.url(this.getAmpDoc(), 'https://t.beop.io', opt_onLayout);
preconnect.url(this.getAmpDoc(), 'https://data.beop.io', opt_onLayout);
}

/** @override */
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-beopinion/amp-beopinion.md
Expand Up @@ -26,7 +26,7 @@ limitations under the License.

## Behavior

The `amp-beopinion` component allows you to embed [BeOpinion](https://beopinion.com/) content in your AMP page for a given BeOpinion account. BeOpinion is a tool for content creators to add interactive blocks such as polls and quizzes to their pages. BeOpinion mostly works with journalists of major media groups in Europe.
The `amp-beopinion` component allows you to embed [BeOpinion](https://beop.io/) content in your AMP page for a given BeOpinion account. BeOpinion is a tool for content creators to add interactive blocks such as polls and quizzes to their pages. BeOpinion mostly works with journalists of major media groups in Europe.

### Integration examples

Expand Down

0 comments on commit 11036b1

Please sign in to comment.