Skip to content

Commit b65d4be

Browse files
authored
Use gadget in private wiki
See Frederisk/Wikitext-VSCode-Extension#89
1 parent b5a6568 commit b65d4be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ jQuery.when(window.mw.loader.using('mediawiki.util'), $.ready).then((): void =>
112112
const extensionID = 'rowewilsonfrederiskholme.wikitext';
113113
const actionPath = '/PullPage';
114114
const args: Record<string, string> = {
115-
RemoteBot: 'true',
116-
TransferProtocol: window.location.protocol,
115+
// RemoteBot: 'true',
116+
// TransferProtocol: window.location.protocol,
117117
// 'https://host' => '//host': https://www.mediawiki.org/wiki/Manual:$wgServer
118-
SiteHost: window.mw.config.get('wgServer').replace(/^[\w-]*?:(?=\/\/)/, ''),
118+
// SiteHost: window.mw.config.get('wgServer').replace(/^[\w-]*?:(?=\/\/)/, ''),
119119
APIPath: window.mw.util.wikiScript('api'),
120120
Title: window.mw.config.get('wgPageName')
121121
};

0 commit comments

Comments
 (0)