Skip to content

Commit

Permalink
config changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Panico committed Nov 20, 2023
1 parent 711861d commit 9e032df
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
18 changes: 16 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,27 @@
"maximumError": "15kb"
}
],
"optimization": {
"scripts": true,
"styles": {
"minify": false,
"inlineCritical": true
},
"fonts": true
},
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
]
},
"pre": {
"optimization": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ export class CdsPanelWidgetComponent implements OnInit, OnDestroy {
window.addEventListener('message', (event_data)=> {
if(event_data && event_data.origin.includes('widget')){
let message = event_data.data.message
if(message && message.attributes && message.attributes.intentName){
//publish ACTIVE INTENT only if widget-panel is visible
if(message && message.attributes && message.attributes.intentName && this.isPanelVisible){
let intentName = message.attributes.intentName
this.intentService.setLiveActiveIntent(intentName)
}else{
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title>Tiledesk Design Studio</title>
<base href="./">
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="assets/logos/logo-short.png">

Expand Down

0 comments on commit 9e032df

Please sign in to comment.