Skip to content

Commit

Permalink
Not use localhost and update name plugin for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Mineau committed Jul 8, 2021
1 parent 3dbf3df commit 911e157
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
7 changes: 4 additions & 3 deletions src/plugins/iframeShare/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/plugins/iframeShare/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iframeShare",
"version": "0.0.1",
"name": "@bimdata/iframe-share-viewer-plugin",
"version": "0.0.2",
"description": "iframeShare BIMData Viewer Plugin",
"scripts": {
"build": "rollup -c --environment BUILD:production",
Expand Down Expand Up @@ -30,4 +30,4 @@
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-vue": "^5.1.7"
}
}
}
15 changes: 7 additions & 8 deletions src/plugins/iframeShare/src/IframeShare.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,13 @@ export default {
},
computed: {
shareBackendUrl() {
return "http://localhost:8000";
// const apiUrl = this.$viewer.api.apiUrl;
// if (apiUrl.includes("staging")) {
// return "https://share-staging.bimdata.io";
// } else if (apiUrl.includes("next")) {
// return "https://share-next.bimdata.io";
// }
// return "https://share.bimdata.io";
const apiUrl = this.$viewer.api.apiUrl;
if (apiUrl.includes("staging")) {
return "https://share-staging.bimdata.io";
} else if (apiUrl.includes("next")) {
return "https://share-next.bimdata.io";
}
return "https://share.bimdata.io";
},
iframeString() {
return `<iframe width="560" height="315" src="${this.currentShare}" frameborder="0" allowfullscreen></iframe>`;
Expand Down

0 comments on commit 911e157

Please sign in to comment.