Add "use strict" directive to all .js files
This commit is contained in:
parent
240885c32a
commit
3939470679
|
@ -1,6 +1,8 @@
|
|||
// Copyright 2019 miruka
|
||||
// This file is part of harmonyqml, licensed under LGPLv3.
|
||||
|
||||
"use strict"
|
||||
|
||||
function onExitRequested(exitCode) {
|
||||
Qt.exit(exitCode)
|
||||
}
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
// Copyright 2019 miruka
|
||||
// This file is part of harmonyqml, licensed under LGPLv3.
|
||||
|
||||
"use strict"
|
||||
|
||||
function onAccountUpdated(userId) {
|
||||
accounts.append({userId})
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user