Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Commit

Permalink
fix: device.js now will grab off from the global.
Browse files Browse the repository at this point in the history
re #46
  • Loading branch information
xiazeyu committed Nov 24, 2017
1 parent cdea4ba commit e93460a
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 72 deletions.
3 changes: 1 addition & 2 deletions dist/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/insert.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<script type="text/javascript" src="bundle.js?1d427b26f53e0c09b9fb"></script>
<script type="text/javascript" src="bundle.js?4da9d8c6a6cad0e778d7"></script>
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ hexo.extend.helper.register('live2d', function() {
document.write('<script type="text/javascript" src="/live2d/script.js"><\\/script>');
document.write('<script>loadlive2d(${JSON.stringify(config.id)}, ${JSON.stringify(url.resolve("/live2d/assets/", config.model + ".model.json"))}, 0.5)<\\/script>');
}
})();
}
const device = device.default;
)();
</script>
`
});
Expand Down
126 changes: 59 additions & 67 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"cz-conventional-changelog": "^2.1.0",
"html-webpack-plugin": "^2.30.1",
"source-map-loader": "^0.2.3",
"uglify-js": "^3.1.9",
"uglify-js": "^3.1.10",
"webpack": "^3.8.1"
},
"dependencies": {
Expand Down

1 comment on commit e93460a

@xiazeyu
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't work though.应该是js异步加载的问题

Please sign in to comment.