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:
parent
fa84808048
commit
bfd7ace721
2 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue