mirror of
https://github.com/webodf/WebODF.git
synced 2026-11-30 16:47:58 +01:00
16 lines
405 B
C++
16 lines
405 B
C++
/**
|
|
* Small executable that loads a javascript or html page from local a URI.
|
|
* If the URI ends in .js it will be run in QtScript engine, otherwise, it will
|
|
* be assumed to be a webpage that will be opened in
|
|
*/
|
|
#include "pagerunner.h"
|
|
int
|
|
main(int argc, char** argv) {
|
|
if (argc != 2) {
|
|
return 1;
|
|
}
|
|
QApplication app(argc, argv);
|
|
PageRunner p(argv[1]);
|
|
return app.exec();
|
|
}
|