0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fixed invalid shortcuts imports

no issue

- `utils/shortcuts.js` does not have a default export but we were using it as if it did, this isn't valid and breaks when transpiled via webpack via embroider
- switched to the valid `import * as shortcuts` import syntax
This commit is contained in:
Kevin Ansfield 2022-09-23 19:17:37 +02:00
parent fa84808048
commit bfd7ace721
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
/* global key */
import * as shortcuts from '../utils/shortcuts';
import Component from '@glimmer/component';
import Ember from 'ember';
import shortcuts from '../utils/shortcuts';
import {A, isArray} from '@ember/array';
import {action, get} from '@ember/object';
import {

View file

@ -3,7 +3,7 @@ import Mixin from '@ember/object/mixin';
import {run} from '@ember/runloop';
import {typeOf} from '@ember/utils';
import shortcutsCache from '../utils/shortcuts';
import * as shortcutsCache from '../utils/shortcuts';
// Configure KeyMaster to respond to all shortcuts,
// even inside of