From 0ce705bb3f7c12fa3ecd38b8f6b3c0123da21b62 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Fri, 2 Feb 2024 17:28:05 +0100 Subject: [PATCH] added method inferring from url parametere --- ccp/js/executionformcontroller.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ccp/js/executionformcontroller.js b/ccp/js/executionformcontroller.js index d164464..4738a70 100644 --- a/ccp/js/executionformcontroller.js +++ b/ccp/js/executionformcontroller.js @@ -15,6 +15,10 @@ class CCPExecutionForm extends HTMLElement{ this.#rootdoc = this.attachShadow({ "mode" : "open"}) this.connectNewExecutionRequest() + + const p = new URLSearchParams(window.location.search) + this.#method = urlParams.get('method'); + this.render() this.showMethod() }