Skip to content

Commit

Permalink
Undo // NOSONAR in JS, because it has no effect
Browse files Browse the repository at this point in the history
  • Loading branch information
axunonb committed Apr 11, 2024
1 parent ad645fc commit 3640e75
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions League/Scripts/Site.ModalForm.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
// All scripts go into the same namespace
'use strict';
if (typeof Site === 'undefined') {
var Site = {}; // NOSONAR
var Site = {};
}
// Define all undefined variables as empty objects
if (typeof bootstrap === 'undefined') {
var bootstrap = {}; // NOSONAR
var bootstrap = {};
}
if (typeof JL === 'undefined') {
var JL = {}; // NOSONAR
var JL = {};
}
if (typeof URLSearchParams === 'undefined') {
var URLSearchParams = {}; // NOSONAR
var URLSearchParams = {};
}
if (typeof AbortController === 'undefined') {
var AbortController = {}; // NOSONAR
var AbortController = {};
}

/* Handling of forms inside Bootstrap 5 modals */
Expand Down
2 changes: 1 addition & 1 deletion League/Scripts/Site.ShowPassword.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// All scripts go into the same namespace
if (typeof Site === 'undefined') {
var Site = {}; // NOSONAR
var Site = {};
}
/*
Make characters of an <input type="password"/> field visible/invisible.
Expand Down
4 changes: 2 additions & 2 deletions League/Scripts/Site.TempusDominusFactory.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// All Site scripts go into the same namespace
if (typeof Site === 'undefined') {
var Site = {}; // NOSONAR
var Site = {};
}
if (typeof tempusDominus === 'undefined') {
var tempusDominus = window.tempusDominus; // NOSONAR
var tempusDominus = window.tempusDominus;
}

Site.TempusDominusFactory = class {
Expand Down

0 comments on commit 3640e75

Please sign in to comment.