diff --git a/getWebpackBaseConfig.js b/getWebpackBaseConfig.js index af38ad36d..a73316992 100644 --- a/getWebpackBaseConfig.js +++ b/getWebpackBaseConfig.js @@ -27,7 +27,6 @@ module.exports = function getBaseConfig({ themeFolder = null, styleLoader = 'sty entry: { app: './src/app.js', adapter: './src/adapter.js', - proxy: './src/proxy.js', redirect: './src/redirect.js', }, resolve: { diff --git a/src/lib/ProxyFrameController.js b/src/lib/ProxyFrameController.js deleted file mode 100644 index 1b4454a45..000000000 --- a/src/lib/ProxyFrameController.js +++ /dev/null @@ -1,21 +0,0 @@ -import ProxyFrameController from '@ringcentral-integration/widgets/lib/ProxyFrameController'; - -export default class NewProxyFrameController extends ProxyFrameController { - constructor(options) { - super(options); - window.addEventListener('message', ({ data }) => { - if (!data) { - return; - } - const { - callbackUri, - } = data; - - if (callbackUri) { - window.parent.postMessage({ - callbackUri, - }, '*'); - } - }); - } -} diff --git a/src/proxy.html b/src/proxy.html index b6647566f..9aeb8cf04 100644 --- a/src/proxy.html +++ b/src/proxy.html @@ -14,6 +14,6 @@
- +