mirror of https://github.com/vector-im/riot-web
convert index.js to typescript
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/13032/head
parent
20442413bf
commit
093b7bbf72
|
@ -32,7 +32,7 @@ if ('serviceWorker' in navigator) {
|
|||
navigator.serviceWorker.register('sw.js');
|
||||
}
|
||||
|
||||
async function settled(prom) {
|
||||
async function settled(prom: Promise<any>) {
|
||||
try {
|
||||
await prom;
|
||||
} catch (e) {
|
|
@ -31,7 +31,8 @@ import SdkConfig from "matrix-react-sdk/src/SdkConfig";
|
|||
import sendBugReport from "matrix-react-sdk/src/rageshake/submit-rageshake";
|
||||
|
||||
export function initRageshake() {
|
||||
rageshake.init().then(() => {
|
||||
const prom = rageshake.init();
|
||||
prom.then(() => {
|
||||
console.log("Initialised rageshake.");
|
||||
console.log("To fix line numbers in Chrome: " +
|
||||
"Meatball menu → Settings → Blackboxing → Add /rageshake\\.js$");
|
||||
|
@ -46,6 +47,7 @@ export function initRageshake() {
|
|||
}, (err) => {
|
||||
console.error("Failed to initialise rageshake: " + err);
|
||||
});
|
||||
return prom;
|
||||
}
|
||||
|
||||
window.mxSendRageshake = function(text: string, withLogs?: boolean) {
|
||||
|
|
Loading…
Reference in New Issue