Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(frontend): Safariでプラグインが複数ある場合に正常に読み込まれない問題を修正 #10290

Merged
merged 4 commits into from
Mar 11, 2023

Conversation

slofp
Copy link
Contributor

@slofp slofp commented Mar 10, 2023

What

Plugin:register_post_form_actionを使用したプラグインを公開した際に、Safariを使用している方々から「1つは反映されているがプラグインが反映されていない」との報告を受けたため、Safariでも正常にプラグインが読み込めるように修正しました。

同様のissueが #9829 にありました。

Why

#9829 の問題を調べた結果、createAiScriptEnvReferenceError: Cannot access uninitialized variableが発生しており、それに関連した他のissue( sveltejs/kit#2889 sveltejs/kit#7805 )からwebkitのバグが問題であるらしく、ロード時に同時に読み込もうとすると起こるバグのようなので、importの処理の開始を少し遅らせることによって問題が解決した。

setTimeoutの値が0の場合でも読み込まれていたので、読み込み速度にあまり影響が出ないようにしてあります。

Additional info (optional)

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

@github-actions github-actions bot added the packages/frontend Client side specific issue/PR label Mar 10, 2023
@codecov
Copy link

codecov bot commented Mar 10, 2023

Codecov Report

Merging #10290 (77e0d79) into develop (65b1524) will decrease coverage by 1.00%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop   #10290      +/-   ##
===========================================
- Coverage    73.37%   72.37%   -1.00%     
===========================================
  Files          809      715      -94     
  Lines        77515    66146   -11369     
  Branches      5401     5282     -119     
===========================================
- Hits         56875    47874    -9001     
+ Misses       20640    18272    -2368     

see 94 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

packages/frontend/src/init.ts Outdated Show resolved Hide resolved
packages/frontend/src/init.ts Outdated Show resolved Hide resolved
syuilo and others added 2 commits March 11, 2023 13:40
Co-authored-by: rinsuki <428rinsuki+git@gmail.com>
Co-authored-by: rinsuki <428rinsuki+git@gmail.com>
@syuilo syuilo merged commit 4887544 into misskey-dev:develop Mar 11, 2023
@syuilo
Copy link
Member

syuilo commented Mar 11, 2023

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages/frontend Client side specific issue/PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants