Fix lint warnings and turn warnings back on (#7409)

Signed-off-by: Aaron Raimist <aaron@raim.ist>
pull/7444/head
Aaron Raimist 4 years ago
parent 401c85ad5b
commit d035efb14e
No known key found for this signature in database
GPG Key ID: 37419210002890EF
  1. 4
      src/vector/getconfig.js
  2. 8
      src/vector/index.js
  3. 4
      src/vector/platform/WebPlatform.js

@ -59,7 +59,7 @@ function getConfig(configJsonFilename) {
// which breaks if there's no config.json and we're
// loading from the filesystem (see above).
resolve(JSON.parse(body));
}
},
);
})
});
}

@ -60,10 +60,6 @@ import CallHandler from 'matrix-react-sdk/lib/CallHandler';
import {getVectorConfig} from './getconfig';
// Disable warnings for now: we use deprecated bluebird functions
// and need to migrate, but they spam the console with warnings.
Promise.config({warnings: false});
let lastLocationHashSet = null;
function initRageshake() {
@ -205,9 +201,9 @@ function getConfig(configJsonFilename) {
// which breaks if there's no config.json and we're
// loading from the filesystem (see above).
resolve(JSON.parse(body));
}
},
);
})
});
}
function onTokenLoginCompleted() {

@ -72,7 +72,7 @@ export default class WebPlatform extends VectorBasePlatform {
global.Notification.requestPermission((result) => {
resolve(result);
});
})
});
}
displayNotification(title: string, msg: string, avatarUrl: string, room: Object) {
@ -127,7 +127,7 @@ export default class WebPlatform extends VectorBasePlatform {
resolve(ver);
},
);
})
});
}
getAppVersion(): Promise<string> {

Loading…
Cancel
Save