Browse Source

fix: workflow settings

Ahmad Kholid 2 năm trước cách đây
mục cha
commit
b2ef66d5f5

+ 4 - 3
src/components/newtab/workflow/settings/SettingsGeneral.vue

@@ -32,7 +32,7 @@
       </span>
     </div>
   </div>
-  <div v-if="!isMV2" class="flex items-center pt-4">
+  <div v-if="!isFirefox" class="flex items-center pt-4">
     <div class="mr-4 flex-1">
       <p>Workflow Execution</p>
       <p class="text-sm leading-tight text-gray-600 dark:text-gray-200">
@@ -148,7 +148,7 @@
 <script setup>
 import { useI18n } from 'vue-i18n';
 import { useToast } from 'vue-toastification';
-import browser from 'webextension-polyfill';
+// import browser from 'webextension-polyfill';
 import { clearCache } from '@/utils/helper';
 import { useHasPermissions } from '@/composable/hasPermissions';
 
@@ -164,7 +164,8 @@ const { t } = useI18n();
 const toast = useToast();
 const permissions = useHasPermissions(['notifications']);
 
-const isMV2 = browser.runtime.getManifest().manifest_version === 2;
+const isFirefox = BROWSER_TYPE === 'firefox';
+// const isMV2 = browser.runtime.getManifest().manifest_version === 2;
 
 const browserType = BROWSER_TYPE;
 const onError = [

+ 1 - 0
src/workflowEngine/blocksHandler/handlerJavascriptCode.js

@@ -201,6 +201,7 @@ export async function javascriptCode({ outputs, data, ...block }, { refData }) {
         result.columns.insert;
 
       insert = Boolean(insertData);
+      console.log(insert);
 
       if (inputNextBlockId) {
         const customNextBlockId = this.getBlockConnections(inputNextBlockId);