Added feature to specify first seatmap on load by defining second value of SMAP (must be valid code). If invalid code given, first seatmap will be returned.
This commit is contained in:
@@ -83,7 +83,10 @@ export function getSMAP(): string | undefined {
|
||||
return undefined;
|
||||
|
||||
const str: string = jQuery("#seating_map_url a").attr("onclick");
|
||||
const re = /openNewWindow\(\'(\d+)\'/;
|
||||
|
||||
//const re = /openNewWindow\(\'(\d+)\'/;
|
||||
const re = /openNewWindow\(\'(.+?)\'/;
|
||||
|
||||
const found: RegExpMatchArray | null = str.match(re);
|
||||
|
||||
return found ? found[1] : undefined;
|
||||
|
||||
Reference in New Issue
Block a user