fix(plugin): clipboard buttons not loaded

This commit is contained in:
ppoffice 2021-01-01 14:58:09 -05:00
parent a67909958d
commit 5cadb062da
No known key found for this signature in database
GPG Key ID: B33335481CC0D498
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ module.exports = class extends Component {
return <Fragment>
<script src={cdn('jquery', '3.3.1', 'dist/jquery.min.js')}></script>
<script src={cdn('moment', '2.22.2', 'min/moment-with-locales.min.js')}></script>
{clipboard && <script src={cdn('clipboard', '2.0.4', 'dist/clipboard.min.js')} async></script>}
{clipboard && <script src={cdn('clipboard', '2.0.4', 'dist/clipboard.min.js')} defer></script>}
<script dangerouslySetInnerHTML={{ __html: `moment.locale("${language}");` }}></script>
<script dangerouslySetInnerHTML={{ __html: embeddedConfig }}></script>
<script src={url_for('/js/column.js')}></script>

View File

@ -35,7 +35,7 @@
},
"dependencies": {
"deepmerge": "^4.2.2",
"hexo-component-inferno": "^0.10.1",
"hexo-component-inferno": "^0.10.5",
"inferno": "^7.3.3",
"inferno-create-element": "^7.3.3",
"moment": "^2.22.2",