whoami1337 1 anno fa
parent
commit
a041a85898
3 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 1 1
      src/global.d.ts
  2. 3 3
      src/index.ts
  3. 1 1
      webpack.config.js

+ 1 - 1
src/global.d.ts

@@ -1,6 +1,6 @@
 declare global {
   interface Window {
-    AMF_METRIKA: any; // Replace 'any' with the actual type of your custom property.
+    AMF: any; // Replace 'any' with the actual type of your custom property.
   }
 }
 

+ 3 - 3
src/index.ts

@@ -1,5 +1,5 @@
 /**
- * ADMEFINE METRIKA
+ * ADMEFINE.JS
  * 2023
  * 0.0.1
  */
@@ -18,8 +18,8 @@ const init = (props: IInitProps) => {
   initUTM();
 }
 
-window.AMF_METRIKA = window.AMF_METRIKA || {};
-window.AMF_METRIKA = {
+window.AMF = window.AMF || {};
+window.AMF = {
   init,
   methods: {
     sendLead,

+ 1 - 1
webpack.config.js

@@ -6,7 +6,7 @@ module.exports = (env, argv) => {
   return {
     entry: './src/index.ts',
     output: {
-      filename: 'amf_metrks.min.js',
+      filename: 'amf.min.js',
       path: path.resolve(__dirname, 'dist'),
     },