Skip to content

Commit

Permalink
Use gadget in private wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
threddast authored Jun 17, 2024
1 parent b5a6568 commit b65d4be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ jQuery.when(window.mw.loader.using('mediawiki.util'), $.ready).then((): void =>
const extensionID = 'rowewilsonfrederiskholme.wikitext';
const actionPath = '/PullPage';
const args: Record<string, string> = {
RemoteBot: 'true',
TransferProtocol: window.location.protocol,
// RemoteBot: 'true',
// TransferProtocol: window.location.protocol,
// 'https://host' => '//host': https://www.mediawiki.org/wiki/Manual:$wgServer
SiteHost: window.mw.config.get('wgServer').replace(/^[\w-]*?:(?=\/\/)/, ''),
// SiteHost: window.mw.config.get('wgServer').replace(/^[\w-]*?:(?=\/\/)/, ''),
APIPath: window.mw.util.wikiScript('api'),
Title: window.mw.config.get('wgPageName')
};
Expand Down

0 comments on commit b65d4be

Please sign in to comment.