plugin updates
This commit is contained in:
@@ -19,7 +19,7 @@ export function initBackgroundApp(initFn: CallbackFn | CallbackFn[]) {
|
||||
initApp(main);
|
||||
}
|
||||
|
||||
export const getOrCreateBackgroundApp = (refreshToken: string) => {
|
||||
export const getOrCreateBackgroundApp = (refreshToken = '') => {
|
||||
if ((window as any).LeadinBackgroundApp) {
|
||||
return (window as any).LeadinBackgroundApp;
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ export const isFullSiteEditor = () => {
|
||||
return select && !!select('core/edit-site');
|
||||
};
|
||||
|
||||
const applyWithSelect = withSelect((select: Function, props: any): any => {
|
||||
const applyWithSelect: any = withSelect((select: Function, props: any): any => {
|
||||
return {
|
||||
metaValue: select('core/editor').getEditedPostAttribute('meta')[
|
||||
props.metaKey
|
||||
@@ -13,7 +13,7 @@ const applyWithSelect = withSelect((select: Function, props: any): any => {
|
||||
};
|
||||
});
|
||||
|
||||
const applyWithDispatch = withDispatch(
|
||||
const applyWithDispatch: any = withDispatch(
|
||||
(dispatch: Function, props: any): any => {
|
||||
return {
|
||||
setMetaValue(value: string) {
|
||||
|
||||
Reference in New Issue
Block a user