Skip to content

Commit e3cda9e

Browse files
committed
fix(ideone): corrected the src url formed for the iframe
1 parent 6913738 commit e3cda9e

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/js/modules/code/ideone.es6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ export default class Ideone extends Base {
88
}
99

1010
template(match) {
11-
return ejs.template.ideone(match, this.options) || `<div class="ejs-ideone ejs-embed"><iframe src="http://ideone.com/embed/${match.split('/')}" frameborder="0" height="${this.options.codeEmbedHeight}"></iframe></div>`
11+
return ejs.template.ideone(match, this.options) || `<div class="ejs-ideone ejs-embed"><iframe src="http://ideone.com/embed/${match.split('/')[1]}" frameborder="0" height="${this.options.codeEmbedHeight}"></iframe></div>`
1212
}
1313
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/**
2+
* Created by ritz078 on 09/01/16.
3+
*/

0 commit comments

Comments
 (0)