Framework::refresh_opener always refreshes the main window because the refresh is carried out by the framework object:
}
}
catch(e) {
// ignore SecurityError exception if opener is different security context / cross-origin
}
}
// Flag for if this is opened in a popup
var popup = (window.opener != null);
window.egw_webserverUrl = egw_script.getAttribute('data-url');
window.egw_appName = egw_script.getAttribute('data-app');
window.egw_buildEpoch = parseInt(egw_script.getAttribute('data-epoch')) || null;
// logical entry path -> hashed physical path, filtered server-side to this user's apps
window.egw_manifest = JSON.parse(egw_script.getAttribute('data-manifest')) || {};
// split includes in legacy js and modules
// phpbrain used to belong here too, back when its only js/ file was a plain pre-rollup
// app.js - now that it has a real app.ts (ticket #126081), routing it through this literal,
// manifest-blind <script src> path instead of egw_import() below either serves its
// gitignored, never-rebuilt app.min.js leftover on disk (missing app.classes.phpbrain) or,
// once that stale file is cleaned up, 404s outright - either way app.classes.phpbrain never
https://github.com/EGroupware/egroupware/blob/master/api/js/jsapi/egw_message.js#L351
Only way to avoid that would be implementing an observer in your app.js:
https://github.com/EGroupware/egroupware/blob/master/api/js/jsapi/egw_message.js#L337
If your observer returns true, the the frameworks refresh method is not called. Obviously your observer should carry out the wanted refresh, as it is not happening otherwise.
Be aware that observer methods get called for refresh requests of other apps too!
Ralf