Change delimiter back to colon.
This commit is contained in:
1 parent
b0528d94f9
commit
1e72a7fa11
2 files changed
+5
-5
No files matched your search
@@ -4,7 +4,7 @@ import { createFrigateCardCustomAction } from './action.js';
|
||||
export const getActionsFromQueryString = (): FrigateCardCustomAction[] => {
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
const actions: FrigateCardCustomAction[] = [];
|
||||
const actionRE = new RegExp(/^frigate-card-action(\/(?<cardID>\w+))?\/(?<action>\w+)/);
|
||||
const actionRE = new RegExp(/^frigate-card-action(:(?<cardID>\w+))?:(?<action>\w+)/);
|
||||
|
||||
for (const [key, value] of params.entries()) {
|
||||
const match = key.match(actionRE);
|
||||
|
||||
Reference in new issue
Block a user