Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Vildravn
today-in-wow-widget
Commits
e6675c38
Commit
e6675c38
authored
Dec 11, 2020
by
Vildravn
Browse files
Add url to the widget
parent
3d92b6c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
Today in WoW.js
Today in WoW.js
+2
-0
No files found.
Today in WoW.js
View file @
e6675c38
...
...
@@ -100,6 +100,8 @@ async function createWidget(size) {
widget
.
backgroundColor
=
colors
.
bg
;
if
(
size
==
'
medium
'
)
{
widget
.
url
=
REGION
==
'
EU
'
?
'
https://www.wowhead.com/world-quests/sl/eu
'
:
'
https://www.wowhead.com/world-quests/sl/na
'
;
let
whData
=
await
fetchData
(
"
https://www.wowhead.com
"
,
"
loadString
"
);
$
=
cheerio
.
load
(
whData
);
let
data
=
undefined
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment