diff --git a/src/migrate.html b/src/migrate.html
index 42fca212..5fb06c22 100644
--- a/src/migrate.html
+++ b/src/migrate.html
@@ -22,10 +22,9 @@
var source = event.source;
var data = event.message;
- // Uncomment for production
- // if (origin !== "http://coriolis.io") {
- // return;
- // }
+ if (window.location.href.indexOf('coriolis') != -1 && origin !== "http://coriolis.io") {
+ return;
+ }
try {
var builds = fromJsonToObject(localStorage.getItem('builds'));
diff --git a/webpack.config.prod.js b/webpack.config.prod.js
index 4bc00fe0..b3e70875 100644
--- a/webpack.config.prod.js
+++ b/webpack.config.prod.js
@@ -74,6 +74,7 @@ module.exports = {
}),
new CopyDirPlugin(path.join(__dirname, 'src/schemas'), 'schemas'),
new CopyDirPlugin(path.join(__dirname, 'src/images/logo/*'), ''),
+ new CopyDirPlugin(path.join(__dirname, 'src/migrate.html'), ''),
new AppCachePlugin({
network: ['*'],
settings: ['prefer-online'],