Browse Source

Fix auto sync demo workflow

杜府 3 năm trước cách đây
mục cha
commit
1180ecb85d
2 tập tin đã thay đổi với 6 bổ sung5 xóa
  1. 5 5
      .github/workflows/auto-sync-demo.yml
  2. 1 0
      demo/src/main.js

+ 5 - 5
.github/workflows/auto-sync-demo.yml

@@ -18,11 +18,11 @@ jobs:
 
             # 1. clone 仓库 github.com/dufu1991/stdf,使用 secrets.STDF_GITHUB_TOKEN
             - name: Clone stdf 
-                uses: actions/checkout@v3
-                with:
-                    repository: dufu1991/stdf
-                    token: ${{ secrets.STDF_GITHUB_TOKEN }}
-                    path: stdf
+              uses: actions/checkout@v3
+              with:
+                  repository: dufu1991/stdf
+                  token: ${{ secrets.STDF_GITHUB_TOKEN }}
+                  path: stdf
                     
             # 2. cd 到 stdf 仓库的 demo 文件内,初始化本地仓库
             #    将 demo/src/App.svelte 文件内的 ../../components 替换为 stdf

+ 1 - 0
demo/src/main.js

@@ -52,6 +52,7 @@ document.addEventListener(
     false
 );
 // 阻止双指放大
+// Prevent two finger zoom
 document.addEventListener('gesturestart', function (event) {
     event.preventDefault();
 });