Remove redundant use strict directive.

This commit is contained in:
Fredrik Jonsson 2024-12-20 12:22:09 +01:00
commit 92dd57684d

View file

@ -815,8 +815,6 @@ This is the way I construct my JavaScript files.
```js
(function () {
'use strict';
// Add a js class to the html-tag when JavsScript is active.
document.querySelector('html').classList.replace('nojs', 'js');
@ -829,8 +827,6 @@ This is the way I construct my JavaScript files.
```js
(function ($) {
'use strict';
// Add your code here.
$('html').removeClass('nojs').addClass('js');
@ -842,8 +838,6 @@ This is the way I construct my JavaScript files.
```js
(function ($) {
'use strict';
// Add your code here.
$('html').removeClass('nojs').addClass('js');