All the previews (in Mail, Contacts, Memos and Tasks) stop using deprecated WebKitGTK+ DOM API through a WebExtension (and its D-Bus API) and start using the JavaScriptCore API (and JavaScript as such). This allows to lightweight the WebExtension for the EWebView significantly, including drop of the D-Bus API of it, fully relying on the Inter-Process-Communication of WebKitGTK+ itself.
13 lines
239 B
JavaScript
13 lines
239 B
JavaScript
'use strict';
|
|
|
|
/* semi-convention: private functions start with lower-case letter,
|
|
public functions start with upper-case letter. */
|
|
|
|
function EvoConvertToPlainText(element)
|
|
{
|
|
if (!element)
|
|
return null;
|
|
|
|
return element.innerText;
|
|
}
|