• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révisionc72364b7ec2b10e780c384c0e01dee8430394844 (tree)
l'heure2017-08-15 10:32:05
Auteurumorigu <umorigu@gmai...>
Commiterumorigu

Message de Log

BugTrack/2420 Avoid JavaScript error on PHP5.3 env

Change Summary

Modification

--- a/skin/main.js
+++ b/skin/main.js
@@ -64,6 +64,9 @@ if (window.addEventListener) {
6464 function getSiteListFromBody() {
6565 var list = [];
6666 var defRoot = document.querySelector('.pukiwiki-ticketlink-def');
67+ if (!defRoot) {
68+ return [];
69+ }
6770 var siteNodes = defRoot.querySelectorAll('.pukiwiki-ticketlink-site');
6871 Array.prototype.forEach.call(siteNodes, function (e) {
6972 var siteInfoText = e.dataset && e.dataset.site;