Skip to content

Commit

Permalink
restore IIFEs and remove breaking spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahs committed Apr 19, 2022
1 parent 08ac952 commit a326f13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions script/bookmarklets/view-in-development.js
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
window.location.href = window.location.href
.replace(/https:\/\/docs\.github\.com/, 'http:https://localhost:4000')
.replace(/https:\/\/.*\..*\.(com|net|dev|io|org|ms)/, 'http:https://localhost:4000')
javascript:(()=>{window.location.href=window.location.href.replace(/https:\/\/docs\.github\.com/,'http:https://localhost:4000').replace(/https:\/\/.*\..*\.(com|net|dev|io|org|ms)/,'http:https://localhost:4000')})()
4 changes: 1 addition & 3 deletions script/bookmarklets/view-in-production.js
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
window.location.href = window.location.href
.replace(/http:\/\/localhost:4000/, 'https://docs.github.com')
.replace(/https:\/\/.*\..*\.(com|net|dev|io|org|ms)/, 'https://docs.github.com')
javascript:(()=>{window.location.href=window.location.href.replace(/http:\/\/localhost:4000/,'https://docs.github.com').replace(/https:\/\/.*\..*\.(com|net|dev|io|org|ms)/,'https://docs.github.com')})()

0 comments on commit a326f13

Please sign in to comment.