Add "use strict" directive to all .js files
This commit is contained in:
		@@ -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)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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")
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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})
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user