Add "use strict" directive to all .js files

This commit is contained in:
miruka 2019-07-18 04:38:22 -04:00
parent 240885c32a
commit 3939470679
5 changed files with 10 additions and 0 deletions

View File

@ -1,6 +1,8 @@
// Copyright 2019 miruka // Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3. // This file is part of harmonyqml, licensed under LGPLv3.
"use strict"
function onExitRequested(exitCode) { function onExitRequested(exitCode) {
Qt.exit(exitCode) Qt.exit(exitCode)
} }

View File

@ -1,6 +1,8 @@
// Copyright 2019 miruka // Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3. // This file is part of harmonyqml, licensed under LGPLv3.
"use strict"
// FIXME: Obsolete method, but need Qt 5.12+ for standard JS modules import // FIXME: Obsolete method, but need Qt 5.12+ for standard JS modules import
Qt.include("app.js") Qt.include("app.js")
Qt.include("users.js") Qt.include("users.js")

View File

@ -1,6 +1,8 @@
// Copyright 2019 miruka // Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3. // This file is part of harmonyqml, licensed under LGPLv3.
"use strict"
Qt.include("../utils.js") Qt.include("../utils.js")
function typingTextFor(members, ourUserId) { function typingTextFor(members, ourUserId) {

View File

@ -1,6 +1,8 @@
// Copyright 2019 miruka // Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3. // This file is part of harmonyqml, licensed under LGPLv3.
"use strict"
function onAccountUpdated(userId) { function onAccountUpdated(userId) {
accounts.append({userId}) accounts.append({userId})
} }

View File

@ -1,6 +1,8 @@
// Copyright 2019 miruka // Copyright 2019 miruka
// This file is part of harmonyqml, licensed under LGPLv3. // This file is part of harmonyqml, licensed under LGPLv3.
"use strict"
function hsl(hue, saturation, lightness) { function hsl(hue, saturation, lightness) {
return hsla(hue, saturation, lightness) return hsla(hue, saturation, lightness)