forked from public/foundryvtt-reve-de-dragon
		
	Import de foundry.applications.handlebars.renderTemplate au travers d'une constante pour éliminer les warnings
		
			
				
	
	
		
			14 lines
		
	
	
		
			330 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			330 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import { renderTemplate } from "../../constants.js";
 | |
| 
 | |
| export class TextRollManager {
 | |
| 
 | |
|   static async createRollText(context, param) {
 | |
|     return await renderTemplate(context.template, {
 | |
|       param, options: context.options
 | |
|     })
 | |
|   }
 | |
| 
 | |
|   static getNode(event) {
 | |
|     return $(event.currentTarget)?.parents(".roll-text-link");
 | |
|   }
 | |
| } |