mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Fix lint warnings and turn warnings back on (#7409)
Signed-off-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
parent
401c85ad5b
commit
d035efb14e
@ -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…
Reference in New Issue
Block a user