Delphi Chromium Local Storage

好久不见. 提交于 2020-01-04 13:48:11

问题


I am using Delphi Chromium Embedded DCEF3. If I run my application locally I am able to store data into Local Storage and retrieve it. If I close the application and run it again, the data is gone because Delphi Chromium Embedded does not seem to retain the data between sessions. Everything works fine if I run the application in Chrome and I know that is because Delphi Chromium Embedded DCEF3 uses files to store information. Do you know how to retain local storage data between sessions?

Thank you very much


回答1:


Add the following at the end of your unit:

initialization
  CefCache := 'e:\temp\cef';

CefCache will be used at the initialisation of the dcef in ceflib.pas on line 7772.



来源:https://stackoverflow.com/questions/20524845/delphi-chromium-local-storage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!