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
// This file is part of harmonyqml, licensed under LGPLv3.
"use strict"
function onExitRequested(exitCode) {
Qt.exit(exitCode)
}

View File

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

View File

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

View File

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

View File

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