Skip to content

Commit d9f1421

Browse files
authored
Merge pull request #253 from dym-sh/fix-view-source
view-source now navigates directly to github-repo
2 parents 762e1b1 + f2551ea commit d9f1421

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/common.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Future<void> initViewSourceButton(String script) async {
1414
// query the DOM for the view source button, handle clicks
1515
document.querySelector('#view-source')?.onClick.listen((_) {
1616
// ignore: unsafe_html
17-
final popup = window.open('view_source.html?script=$script', 'View Source');
17+
final popup = window.open('https://github.com/SpinlockLabs/github.dart/blob/master/example/$script', 'View Source');
1818
String? code;
1919

2020
var fetched = false;

0 commit comments

Comments
 (0)