@@ -24,6 +24,8 @@ require('gfm.css/gfm.css');
2424require ( 'highlight.js/styles/github.css' ) ;
2525require ( 'draft-js/dist/Draft.css' ) ;
2626
27+ import './rageshakesetup' ;
28+
2729import React from 'react' ;
2830// add React and ReactPerf to the global namespace, to make them easier to
2931// access via the console
@@ -56,8 +58,6 @@ import SdkConfig from "matrix-react-sdk/lib/SdkConfig";
5658
5759import Olm from 'olm' ;
5860
59- import rageshake from "matrix-react-sdk/lib/rageshake/rageshake" ;
60-
6161import CallHandler from 'matrix-react-sdk/lib/CallHandler' ;
6262
6363import { getVectorConfig } from './getconfig' ;
@@ -68,22 +68,6 @@ let lastLocationHashSet = null;
6868// and need to migrate, but they spam the console with warnings.
6969Promise . config ( { warnings : false } ) ;
7070
71- function initRageshake ( ) {
72- rageshake . init ( ) . then ( ( ) => {
73- console . log ( "Initialised rageshake: See https://bugs.chromium.org/p/chromium/issues/detail?id=583193 to fix line numbers on Chrome." ) ;
74-
75- window . addEventListener ( 'beforeunload' , ( e ) => {
76- console . log ( 'riot-web closing' ) ;
77- // try to flush the logs to indexeddb
78- rageshake . flush ( ) ;
79- } ) ;
80-
81- rageshake . cleanup ( ) ;
82- } , ( err ) => {
83- console . error ( "Failed to initialise rageshake: " + err ) ;
84- } ) ;
85- }
86-
8771function checkBrowserFeatures ( featureList ) {
8872 if ( ! window . Modernizr ) {
8973 console . error ( "Cannot check features - Modernizr global is missing." ) ;
@@ -225,7 +209,6 @@ function onTokenLoginCompleted() {
225209}
226210
227211async function loadApp ( ) {
228- initRageshake ( ) ;
229212 MatrixClientPeg . setIndexedDbWorkerScript ( window . vector_indexeddb_worker_script ) ;
230213 CallHandler . setConferenceHandler ( VectorConferenceHandler ) ;
231214
0 commit comments