mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-04-19 15:27:40 +00:00
Update Ecosia.js
This commit is contained in:
parent
777190dc64
commit
7c0b85135e
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ let widgetInputRAW = args.widgetParameter;
|
|||
let token;
|
||||
if (widgetInputRAW !== null) {
|
||||
token = widgetInputRAW.toString().trim();
|
||||
if (/^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$/.text(token) === false) {
|
||||
if (/^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$/.test(token) === false) {
|
||||
throw new Errpr('Invalid Token Format')
|
||||
}
|
||||
} else {
|
||||
|
@ -77,4 +77,4 @@ if (!config.runsInWidget) {
|
|||
// Tell the system to show the widget.
|
||||
Script.setWidget(widget)
|
||||
Script.complete()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue