Browse Source

remove handle injector

itizawa 4 years ago
parent
commit
3e25326b33

+ 0 - 4
packages/slackbot-proxy/src/services/growi-uri-injector/GrowiUriInjectionButtonDelegator.ts

@@ -2,10 +2,6 @@ import { GrowiUriInjector } from './GrowiUriInjector';
 
 export class GrowiUriInjectionButtonDelegator implements GrowiUriInjector {
 
-  handleInject(type:string):boolean {
-    return type === 'button';
-  }
-
   inject(element: {value:string}, growiUri:string): void {
     const parsedValue = JSON.parse(element.value);
     const originalData = JSON.stringify(parsedValue);

+ 0 - 2
packages/slackbot-proxy/src/services/growi-uri-injector/GrowiUriInjector.ts

@@ -1,8 +1,6 @@
 
 export interface GrowiUriInjector {
 
-  handleInject(type:string):boolean
-
   inject(body: any, growiUri:string): void;
 
   extract(body: any):any;