script-lab
script-lab copied to clipboard
Don't force page reload for custom function dashboard
For historic reasons (the CF functionality initially requiring beta office.js, while the rest of the editor was on release version), the CF page requires full reloads. There is also code like
window.location.hash = '#';
window.location.reload();
This isn't the greatest user experience, and also causes occasional other issue (a temporary error being thrown before the page reloads fully; or on Jakob's Edge machine, the full outer page reloading). It would be best to eliminate this code and become a regular SPA for the CF dashboard.