@@ -64,10 +64,10 @@ chrome.tabs.onRemoved.addListener((tabId) => {
6464let currentSyncData : SyncData | null = null ;
6565let currentPublishPopup : chrome . windows . Window | null = null ;
6666const defaultMessageHandler = ( request , sender , sendResponse ) => {
67- if ( request . action === 'MUTLIPOST_EXTENSION_CHECK_SERVICE_STATUS ' ) {
67+ if ( request . action === 'MULTIPOST_EXTENSION_CHECK_SERVICE_STATUS ' ) {
6868 sendResponse ( { extensionId : chrome . runtime . id } ) ;
6969 }
70- if ( request . action === 'MUTLIPOST_EXTENSION_PUBLISH ' ) {
70+ if ( request . action === 'MULTIPOST_EXTENSION_PUBLISH ' ) {
7171 const data = request . data as SyncData ;
7272 currentSyncData = data ;
7373 ( async ( ) => {
@@ -79,21 +79,21 @@ const defaultMessageHandler = (request, sender, sendResponse) => {
7979 } ) ;
8080 } ) ( ) ;
8181 }
82- if ( request . action === 'MUTLIPOST_EXTENSION_PLATFORMS ' ) {
82+ if ( request . action === 'MULTIPOST_EXTENSION_PLATFORMS ' ) {
8383 getPlatformInfos ( ) . then ( ( platforms ) => {
8484 sendResponse ( { platforms } ) ;
8585 } ) ;
8686 }
87- if ( request . action === 'MUTLIPOST_EXTENSION_GET_ACCOUNT_INFOS ' ) {
87+ if ( request . action === 'MULTIPOST_EXTENSION_GET_ACCOUNT_INFOS ' ) {
8888 getAllAccountInfo ( ) . then ( ( accountInfo ) => {
8989 sendResponse ( { accountInfo } ) ;
9090 } ) ;
9191 }
92- if ( request . action === 'MUTLIPOST_EXTENSION_OPEN_OPTIONS ' ) {
92+ if ( request . action === 'MULTIPOST_EXTENSION_OPEN_OPTIONS ' ) {
9393 chrome . runtime . openOptionsPage ( ) ;
9494 sendResponse ( { extensionId : chrome . runtime . id } ) ;
9595 }
96- if ( request . action === 'MUTLIPOST_EXTENSION_REFRESH_ACCOUNT_INFOS ' ) {
96+ if ( request . action === 'MULTIPOST_EXTENSION_REFRESH_ACCOUNT_INFOS ' ) {
9797 chrome . windows . create ( {
9898 url : chrome . runtime . getURL ( `tabs/refresh-accounts.html` ) ,
9999 type : 'popup' ,
@@ -102,10 +102,10 @@ const defaultMessageHandler = (request, sender, sendResponse) => {
102102 focused : request . data . isFocused || false ,
103103 } ) ;
104104 }
105- if ( request . action === 'MUTLIPOST_EXTENSION_PUBLISH_REQUEST_SYNC_DATA ' ) {
105+ if ( request . action === 'MULTIPOST_EXTENSION_PUBLISH_REQUEST_SYNC_DATA ' ) {
106106 sendResponse ( { syncData : currentSyncData } ) ;
107107 }
108- if ( request . action === 'MUTLIPOST_EXTENSION_PUBLISH_NOW ' ) {
108+ if ( request . action === 'MULTIPOST_EXTENSION_PUBLISH_NOW ' ) {
109109 const data = request . data as SyncData ;
110110 if ( Array . isArray ( data . platforms ) && data . platforms . length > 0 ) {
111111 ( async ( ) => {
0 commit comments