Need help with adding script to a plugin

Hello!

I'm using a plugin called "SRD_WindowUpgrade.js" which allows to make custom windows.
In the plugin these windows are called "Window_Info".

The problem that I'm having is that these windows can only be closed with the ok key but not with a mouse click.
I tried editing the line 1268 in the plugin with "TouchInput.isPressed()" but after that the plugin is not working properly anymore.

Spoiler: Script Before
index.php
Spoiler: Script After
index.php

Any ideas what I should do instead?
Thank you in advance.
You should remove ")" after Input.isPressed('ok'))
Moved to: Javascript/Plugin Support
You should remove ")" after Input.isPressed('ok'))
Hmm.. then I have "if(Input.isPressed(‘ok’) || TouchInput.isTriggered()) {" but that's still not working.
edit: early morning reading sucks ;p
Well, I've not idea why but now it works even though I entered the exact same code.
I don't think that scripting and me will ever get to be friends lol ノಠ_ಠノ
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-adding-script-to-a-plugin.109765/