Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8cd61b8 authored by Akhil's avatar Akhil 🙂
Browse files

fix: remove unused _events param

parent cc605e0e
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -167,7 +167,7 @@ export default {
				baseUrl = baseUrl.substr(0, baseUrl.indexOf('index.php'))
			}

			ClientService.initialize(baseUrl, user, token, null, { cseMode: 'CSEv1r1' })
			ClientService.initialize(baseUrl, user, token, { cseMode: 'CSEv1r1' })
			const api = new LegacyPasswordsApi()
			api.initialize(ClientService.getClient(), { cseMode: 'CSEv1r1' })
			try {
+1 −3
Original line number Diff line number Diff line
@@ -9,10 +9,9 @@ import PWDv1Challenge from './PWDv1Challenge.js'
export default new class ClientService {
	constructor() {
		this._client = null
		this._events = null
	}

	initialize(baseUrl, user, token, events = null, legacyConfig = {}) {
	initialize(baseUrl, user, token, legacyConfig = {}) {
		const server = { baseUrl, user, token }
		const config = { baseUrl, user, token }

@@ -29,7 +28,6 @@ export default new class ClientService {

		const classLoader = new EnhancedClassLoader(classes)
		this._client = new PasswordsClient(server, config, classLoader)
		this._events = events
	}

	getClient() {