Skip to content

Commit

Permalink
[amp-story-player] Fix import error (#28356)
Browse files Browse the repository at this point in the history
* fix cache error

* add toolbox-cache-url js to sources

* fix regex check

* Revert "fix regex check"

This reverts commit 6b2688e.
  • Loading branch information
Enriqe committed May 12, 2020
1 parent 2450277 commit 2cbcf07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions build-system/compile/sources.js
Expand Up @@ -49,6 +49,7 @@ const COMMON_GLOBS = [
'node_modules/@ampproject/animations/package.json',
'node_modules/@ampproject/animations/dist/animations.mjs',
'node_modules/@ampproject/toolbox-cache-url/package.json',
'node_modules/@ampproject/toolbox-cache-url/dist/amp-toolbox-cache-url.esm.js',
'node_modules/@ampproject/viewer-messaging/package.json',
'node_modules/@ampproject/viewer-messaging/messaging.js',
'node_modules/@ampproject/worker-dom/package.json',
Expand Down
3 changes: 1 addition & 2 deletions src/amp-story-player/amp-story-player-impl.js
Expand Up @@ -14,7 +14,6 @@
* limitations under the License.
*/

import * as ampCaches from '../../build-system/global-configs/caches.json';
import * as ampToolboxCacheUrl from '@ampproject/toolbox-cache-url';
import {IframePool} from './amp-story-player-iframe-pool';
import {Messaging} from '@ampproject/viewer-messaging';
Expand Down Expand Up @@ -48,7 +47,7 @@ const IframePosition = {
};

/** @const @type {!Array<string>} */
const SUPPORTED_CACHES = ampCaches.caches.map((cache) => cache.cacheDomain);
const SUPPORTED_CACHES = ['cdn.ampproject.org', 'www.bing-amp.com'];

/**
* @enum {number}
Expand Down

0 comments on commit 2cbcf07

Please sign in to comment.