MCPcopy Create free account
hub / github.com/OtterBrowser/otter-browser / getSource

Method getSource

src/core/UserScript.cpp:259–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259QString UserScript::getSource()
260{
261 if (m_source.isEmpty())
262 {
263 QFile file(m_path);
264
265 if (file.open(QIODevice::ReadOnly))
266 {
267 QTextStream stream(&file);
268
269 m_source = stream.readAll();
270
271 file.close();
272 }
273 }
274
275 return m_source;
276}
277
278QString UserScript::checkUrlSubString(const QString &rule, const QString &urlSubString, QString generatedUrl, int position) const
279{

Callers 2

TransferDialogMethod · 0.45

Calls 3

isEmptyMethod · 0.80
readAllMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected