Skip to content

Commit

Permalink
Fix vitepress compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Sep 3, 2022
1 parent 3e402ba commit cd57862
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.1.1 (2022-09-03)

- Fix VitePress compatibility

## 0.1.0 (2022-09-02)

Initial release
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@whyframe/core",
"description": "Core library for whyframe",
"version": "0.1.0",
"version": "0.1.1",
"author": "Bjorn Lu",
"license": "MIT",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/plugins/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export async function createApp(el) {
const result = await data.createApp(el)
return result
}
if (typeof window !== 'undefined') {
if (typeof window !== 'undefined' && window.frameElement) {
new MutationObserver((mutations) => {
for (const m of mutations) {
if (m.type === 'attributes' && m.attributeName === 'data-why-id') {
Expand Down

0 comments on commit cd57862

Please sign in to comment.