Skip to content

Commit ab0dbe9

Browse files
committed
domains: review geogebra
1 parent f95f6b1 commit ab0dbe9

File tree

2 files changed

+8
-46
lines changed

2 files changed

+8
-46
lines changed

plugins/domains/geogebra.iframe.js

-40
This file was deleted.

plugins/domains/geogebra.org.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,23 @@ export default {
1111
"*"
1212
],
1313

14-
getData: function(urlMatch, options, cb) {
14+
getLink: function(urlMatch) {
1515
/** https://wiki.geogebra.org/en/Embedding_in_Webpages */
1616

1717
if (!/^\d+$/.test(urlMatch[1])) {
18-
cb (null, {__promoUri: {url: 'https://www.geogebra.org/material/iframe/id/' + urlMatch[1]} });
19-
} else {
20-
cb(null, null)
18+
return {
19+
href: 'https://www.geogebra.org/material/iframe/id/' + urlMatch[1],
20+
accept: CONFIG.T.text_html,
21+
rel: [CONFIG.R.app, CONFIG.R.iframely],
22+
'aspect-ratio': 800 / 600
23+
}
2124
}
2225
},
2326

2427
tests: [
2528
{noFeeds: true},
2629
{skipMethods: ['getData']},
27-
"http://www.geogebra.org/m/141300",
28-
"https://www.geogebra.org/m/wn2U6Hj6#material/ysf5TjUB",
30+
"https://www.geogebra.org/m/141300",
2931
"https://www.geogebra.org/classic/hs52mgmq",
3032
"https://www.geogebra.org/graphing/pse7krdf"
3133
]

0 commit comments

Comments
 (0)