From c8687ba78b24bc339b038cd5595c79eda579f5bb Mon Sep 17 00:00:00 2001 From: rowanwins Date: Tue, 17 Mar 2020 12:14:31 +1100 Subject: [PATCH] show how to incorporate rollbar error handler --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index 7edc96cf7c..119ba4ffdf 100644 --- a/index.js +++ b/index.js @@ -19,6 +19,7 @@ import Terria from 'terriajs/lib/Models/Terria'; import updateApplicationOnHashChange from 'terriajs/lib/ViewModels/updateApplicationOnHashChange'; // import updateApplicationOnMessageFromParentWindow from 'terriajs/lib/ViewModels/updateApplicationOnMessageFromParentWindow'; import ViewState from 'terriajs/lib/ReactViewModels/ViewState'; +// import RollbarErrorProvider from 'terriajs/lib/Models/RollbarErrorProvider'; import BingMapsSearchProviderViewModel from 'terriajs/lib/Models/BingMapsSearchProvider'; // import GazetteerSearchProviderViewModel from 'terriajs/lib/ViewModels/GazetteerSearchProviderViewModel.js'; // import GnafSearchProviderViewModel from 'terriajs/lib/ViewModels/GnafSearchProviderViewModel.js'; @@ -83,6 +84,10 @@ module.exports = terria.start({ // new GnafSearchProviderViewModel({terria}) ]; + // viewState.errorHandler = new RollbarErrorProvider({ + // terria: terria + // }); + // Automatically update Terria (load new catalogs, etc.) when the hash part of the URL changes. updateApplicationOnHashChange(terria, window); // updateApplicationOnMessageFromParentWindow(terria, window);