Browse Source

respect jsEnable app flag

master
Odilitime 1 year ago
parent
commit
e98f6f8631
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/interfaces/elements/SCRIPTElement.cpp

+ 5
- 0
src/interfaces/elements/SCRIPTElement.cpp View File

@@ -3,9 +3,14 @@
#include "../../tools/WebResource.h"
#include "../../tools/Log.h"
#include "../../parsers/scripting/javascript/JSParser.h"
#include "../../app/app.h"
#include <ctime>

std::unique_ptr<Component> SCRIPTElement::renderer(const ElementRenderRequest &request) {
if (!request.docComponent->win->openglWindow->app->jsEnable) {
std::cout << "Js is disabled" << std::endl;
return nullptr;
}
TagNode *tagNode = dynamic_cast<TagNode*>(request.node.get());
if (tagNode) {
//std::cout << "SCRIPTElement::renderer - start" << std::endl;

Loading…
Cancel
Save