|
@@ -35,12 +35,12 @@ export class Tracker {
|
|
|
|
|
|
|
|
$window.onbeforeunload = () => {
|
|
$window.onbeforeunload = () => {
|
|
|
if (this.ignoreChanges()) {
|
|
if (this.ignoreChanges()) {
|
|
|
- return null;
|
|
|
|
|
|
|
+ return undefined;
|
|
|
}
|
|
}
|
|
|
if (this.hasChanges()) {
|
|
if (this.hasChanges()) {
|
|
|
return 'There are unsaved changes to this dashboard';
|
|
return 'There are unsaved changes to this dashboard';
|
|
|
}
|
|
}
|
|
|
- return null;
|
|
|
|
|
|
|
+ return undefined;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
scope.$on('$locationChangeStart', (event, next) => {
|
|
scope.$on('$locationChangeStart', (event, next) => {
|