mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
Manual xo fixes and suppressions
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -241,6 +241,8 @@ $(document).ready(() => {
|
||||
utils.disableAll();
|
||||
let elem = $("#Cdomain").val() + "," + $("#Ctarget").val();
|
||||
const ttlVal = Number.parseInt($("#Cttl").val(), 10);
|
||||
// TODO Fix eslint
|
||||
// eslint-disable-next-line unicorn/prefer-number-properties
|
||||
if (isFinite(ttlVal) && ttlVal >= 0) elem += "," + ttlVal;
|
||||
const url =
|
||||
document.body.dataset.apiurl + "/config/dns/cnameRecords/" + encodeURIComponent(elem);
|
||||
|
||||
Reference in New Issue
Block a user