Skip to content

Commit

Permalink
Redirect to mindmaps.app manually.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Richard committed Jun 17, 2018
1 parent 7f50a85 commit 489f04f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/js/MindMaps.js
Expand Up @@ -50,6 +50,13 @@ window.addEventListener('load', function(e) {

}, false)

// manually redirect to mindmaps.app domain because app cache will keep serving the old index.html
// even with the netlify redirects set up.
if (window.location.hostname === 'drichard.org') {
window.onbeforeunload = null;
window.location.assign('https://www.mindmaps.app');
}

/**
* Start up. This function is executed when the DOM is loaded.
*/
Expand Down

0 comments on commit 489f04f

Please sign in to comment.