Skip to content
This repository was archived by the owner on Nov 22, 2021. It is now read-only.

Commit e9ad66c

Browse files
author
Ke, Mingze
committed
Fixed launcher path
1 parent 3544e6d commit e9ad66c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ Code.init = function () {
579579
Code.tabClick(Code.selected);
580580

581581
Code.bindClick('linkToBin', function () {
582-
var urls = window.location.href.split('#')[0].split('/'),
582+
var urls = (location.protocol + '//' + location.host + location.pathname).split('/'),
583583
page = Code.getPage(),
584584
config = {
585585
tpl: page === 'index' ? Code.getDemoPage() : page,

0 commit comments

Comments
 (0)