fix(device_selection_popup): URL

This commit is contained in:
hristoterezov 2017-06-09 13:16:03 -05:00 committed by yanas
parent a5cd118550
commit 893d08d614
1 changed files with 3 additions and 2 deletions

View File

@ -79,8 +79,9 @@ function _openDeviceSelectionDialogInPopup() {
// API_ID will always be defined because the iframe api is enabled
const scope = `dialog_${API_ID}`;
const url = `static/deviceSelectionPopup.html#scope=${
encodeURIComponent(JSON.stringify(scope))}`;
const url = `${
window.location.origin}/static/deviceSelectionPopup.html#scope=${
encodeURIComponent(JSON.stringify(scope))}`;
const popup
= window.open(
url,