Skip to content

Commit

Permalink
Merge pull request #38 from Appropedia/master
Browse files Browse the repository at this point in the history
Mobile fix
  • Loading branch information
jmnote authored Jul 9, 2022
2 parents a115786 + 4c50fee commit 3757e9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions extension.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "SimpleMathJax",
"version": "0.8.2",
"version": "0.8.3",
"author": "jmnote",
"url": "https://www.mediawiki.org/wiki/Extension:SimpleMathJax",
"description": "render TeX between <code><nowiki><math></nowiki></code> and <code><nowiki></math></nowiki></code>",
Expand All @@ -24,7 +24,8 @@
},
"ResourceModules": {
"ext.SimpleMathJax": {
"scripts": ["resources/ext.SimpleMathJax.js"]
"scripts": ["resources/ext.SimpleMathJax.js"],
"targets": ["desktop", "mobile"]
}
},
"ResourceFileModulePaths": {
Expand Down
2 changes: 1 addition & 1 deletion resources/ext.SimpleMathJax.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mw.hook( 'wikipage.categories' ).add( function ( $content ) {
mw.hook( 'wikipage.content' ).add( function ( $content ) {
window.MathJax = {
tex: {
inlineMath: mw.config.get('wgSmjExtraInlineMath').concat([['[math]','[/math]']]),
Expand Down

0 comments on commit 3757e9b

Please sign in to comment.