dsh-skillpie-mail 0.1.6 → 0.1.7
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/lib/client.js +4 -0
- package/lib/index.js +1 -0
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -1044,6 +1044,10 @@ window.__ModuleLoader__.load({
|
|
|
1044
1044
|
if (typeof window !== 'undefined') window.__FEATURED_INIT_CALLED__ = true
|
|
1045
1045
|
if (typeof window !== 'undefined' && window.__DSH_FEATURED_APPLIED__) return
|
|
1046
1046
|
if (typeof window !== 'undefined') window.__DSH_FEATURED_APPLIED__ = true
|
|
1047
|
+
if (typeof window !== 'undefined' && window.__DSH_FEATURED_FULL__) {
|
|
1048
|
+
// 全量版(dsh-featured 插件)已加载:让位,不注册内联板块,避免双 tab 竞态
|
|
1049
|
+
return
|
|
1050
|
+
}
|
|
1047
1051
|
try {
|
|
1048
1052
|
const localeDisposable = ctx.effect(() => ctx.locale.register(NS, { zh, en }), 'dsh-plugins-plugin: locale')
|
|
1049
1053
|
const t = ctx.locale.bind(NS)
|
package/lib/index.js
CHANGED
|
@@ -473,6 +473,7 @@ export default {
|
|
|
473
473
|
async apply(ctx, config = null) {
|
|
474
474
|
integrateFeaturedPlugins(ctx, FEATURED_SOURCE) // dsh-plugins-plugin: 推荐源登记 + 嵌入宿主
|
|
475
475
|
|
|
476
|
+
|
|
476
477
|
const cfg = {
|
|
477
478
|
registerUrl: config?.registerUrl ?? REGISTER_URL,
|
|
478
479
|
imapHost: config?.imapHost ?? 'mail.skillpie.cn',
|