jeawin-astro 3.0.40 → 3.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jeawin-astro",
3
- "version": "3.0.40",
3
+ "version": "3.0.41",
4
4
  "author": "chaegumi <chaegumi@qq.com>",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -6,7 +6,7 @@ export default defineToolbarApp({
6
6
  // canvas.appendChild(text);
7
7
  app.onToggled(async (options) => {
8
8
  // 清除缓存
9
- if(window.location.href.indexOf('preview.jeawin')){
9
+ if(window.location.href.indexOf('preview.jeawin') !== -1){
10
10
  // 是预览,第一段uri
11
11
  // 获取路径部分
12
12
  const path = window.location.pathname;