Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
update constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePulverenti committed Aug 28, 2020
1 parent 22d50b3 commit 5800b42
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions connectionmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,10 @@ export default class ConnectionManager {
deviceName,
deviceId,
capabilitiesFn,
devicePixelRatio) {
devicePixelRatio,
localassetmanager,
itemrepository,
useractionrepository) {

if (!appName) {
throw new Error("Must supply a appName");
Expand Down Expand Up @@ -844,6 +847,9 @@ export default class ConnectionManager {
this.wakeOnLan = wakeOnLan;
this.serverDiscoveryFn = serverDiscoveryFn;
this.devicePixelRatio = devicePixelRatio;
this.localassetmanager = localassetmanager;
this.itemrepository = itemrepository;
this.useractionrepository = useractionrepository;
}

appName() {
Expand Down Expand Up @@ -968,7 +974,17 @@ export default class ConnectionManager {

const ApiClient = this.apiClientFactory;

apiClient = new ApiClient(this.appStorage, this.wakeOnLan, serverUrl, this.appName(), this.appVersion(), this.deviceName(), this.deviceId(), this.devicePixelRatio);
apiClient = new ApiClient(this.appStorage,
this.wakeOnLan,
serverUrl,
this.appName(),
this.appVersion(),
this.deviceName(),
this.deviceId(),
this.devicePixelRatio,
this.localassetmanager,
this.itemrepository,
this.useractionrepository);

apiClient.rejectInsecureAddresses = this.rejectInsecureAddresses;

Expand Down

0 comments on commit 5800b42

Please sign in to comment.