@@ -32,7 +32,7 @@ import { renderMarkdown } from "@a2ui/markdown-it";
3232
3333// Configurations
3434import { A2UIClient } from "./client.js" ;
35- import { configs , AppConfig } from "./configs/configs.js" ;
35+ import { restaurantConfig , AppConfig } from "./configs/configs.js" ;
3636import { styleMap } from "lit/directives/style-map.js" ;
3737
3838@customElement ( "a2ui-shell" )
@@ -47,7 +47,7 @@ export class A2UILayoutEditor extends SignalWatcher(LitElement) {
4747 accessor #lastMessages: any [ ] = [ ] ;
4848
4949 @state ( )
50- accessor config : AppConfig = configs . restaurant ;
50+ accessor config : AppConfig = restaurantConfig ;
5151
5252 @state ( )
5353 accessor #loadingTextIndex = 0 ;
@@ -288,11 +288,6 @@ export class A2UILayoutEditor extends SignalWatcher(LitElement) {
288288 connectedCallback ( ) {
289289 super . connectedCallback ( ) ;
290290
291- // Load config from URL
292- const urlParams = new URLSearchParams ( location . search ) ;
293- const appKey = urlParams . get ( "app" ) ;
294- this . config = ( appKey && configs [ appKey ] ) || configs . restaurant ;
295-
296291 // Set the CSS Overrides for the given appKey.
297292 if ( this . config . cssOverrides && ! document . adoptedStyleSheets . includes ( this . config . cssOverrides ) ) {
298293 document . adoptedStyleSheets = [
@@ -339,7 +334,7 @@ export class A2UILayoutEditor extends SignalWatcher(LitElement) {
339334 if ( this . #requesting) return nothing ;
340335 if ( this . #lastMessages. length > 0 ) return nothing ;
341336
342- return html ` < form
337+ return html `< form
343338 @submit =${ async ( evt : Event ) => {
344339 evt . preventDefault ( ) ;
345340 if ( ! ( evt . target instanceof HTMLFormElement ) ) {
0 commit comments