mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
frontend linting
This commit is contained in:
@@ -21,12 +21,12 @@
|
||||
* So when using class-names, pass in ".whatever-classname"
|
||||
* and for ID, "#id".
|
||||
* */
|
||||
const getFormUrl = (querySelector?: string | HTMLFormElement) => {
|
||||
const getFormUrl = (querySelector?: string | HTMLFormElement): string => {
|
||||
let form;
|
||||
if (querySelector === undefined) {
|
||||
form = <HTMLFormElement>document.querySelector('form');
|
||||
form = <HTMLFormElement>document.querySelector("form");
|
||||
}
|
||||
if (typeof querySelector == 'string' || querySelector instanceof String) {
|
||||
if (typeof querySelector == "string" || querySelector instanceof String) {
|
||||
form = <HTMLFormElement>document.querySelector(querySelector.toString());
|
||||
}
|
||||
if (querySelector instanceof HTMLFormElement) {
|
||||
|
||||
Reference in New Issue
Block a user