You've already forked CEF4Delphi
							
							
				mirror of
				https://github.com/salvadordf/CEF4Delphi.git
				synced 2025-10-30 23:07:52 +02:00 
			
		
		
		
	TCefFileDialogMode and TCefDuplexMode defined as constants
- Added more parameter checks in CefRegisterExtension - Minor change registering the extension in JSExtension demo. The TempHandler reference is valid until it reaches the "finally".
This commit is contained in:
		| @@ -362,7 +362,10 @@ function CefRegisterExtension(const name, code: ustring; const Handler: ICefv8Ha | ||||
| var | ||||
|   TempName, TempCode : TCefString; | ||||
| begin | ||||
|   if (GlobalCEFApp <> nil) and GlobalCEFApp.LibLoaded then | ||||
|   if (GlobalCEFApp <> nil)  and | ||||
|      GlobalCEFApp.LibLoaded and | ||||
|      (length(name) > 0)     and | ||||
|      (length(code) > 0)     then | ||||
|     begin | ||||
|       TempName := CefString(name); | ||||
|       TempCode := CefString(code); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user