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 @@
- + diff --git a/src/proxy.js b/src/proxy.js deleted file mode 100644 index 1d9d17391..000000000 --- a/src/proxy.js +++ /dev/null @@ -1,7 +0,0 @@ -import ProxyFrameController from './lib/ProxyFrameController'; - -const prefix = process.env.PREFIX; - -export default new ProxyFrameController({ - prefix, -}); diff --git a/webpack-dev-server.config.js b/webpack-dev-server.config.js index 9bba0f69c..3038a1934 100644 --- a/webpack-dev-server.config.js +++ b/webpack-dev-server.config.js @@ -90,7 +90,6 @@ function getAppWebpackConfig({ brand }) { }); config.entry = { app: './src/app.js', - proxy: './src/proxy.js', redirect: './src/redirect.js', }; return config; diff --git a/webpack-production.config.js b/webpack-production.config.js index 6a050825c..98605c554 100644 --- a/webpack-production.config.js +++ b/webpack-production.config.js @@ -125,7 +125,6 @@ function getAppWebpackConfig({ brand }) { ]; config.entry = { app: './src/app.js', - proxy: './src/proxy.js', redirect: './src/redirect.js', }; if (!process.env.LOCAL_EXTENSION_MODE) {