Ver código fonte

fix: uppercase first char of inject root object name

Acathur 4 anos atrás
pai
commit
567fa65d0a
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/bridge/index.ts

+ 1 - 1
src/bridge/index.ts

@@ -54,7 +54,7 @@ class ProginnBridge {
     return payload?.uid
   }
 
-  inject(name: string, cb: () => void, root = 'proginn') {
+  inject(name: string, cb: () => void, root = 'Proginn') {
     window[root] = window[root] || {}
     window[root][name] = cb
   }