loader.js 671 B

12345678910111213141516171819202122
  1. window.OmegaPopup = {};
  2. $script(['js/index.js', 'js/profiles.js', 'js/keyboard.js'], 'om-main');
  3. $script(['js/i18n.js']);
  4. $script('../js/omega_target_popup.js', 'om-target', function() {
  5. OmegaTargetPopup.getActivePageInfo(function(err, info) {
  6. window.OmegaPopup.pageInfo = info;
  7. $script.done('om-page-info');
  8. });
  9. OmegaTargetPopup.getState([
  10. 'availableProfiles',
  11. 'currentProfileName',
  12. 'validResultProfiles',
  13. 'isSystemProfile',
  14. 'currentProfileCanAddRule',
  15. 'proxyNotControllable',
  16. 'externalProfile',
  17. 'showExternalProfile',
  18. ], function(err, state) {
  19. window.OmegaPopup.state = state;
  20. $script.done('om-state');
  21. });
  22. });