Wechat sharing is disabled on page A, jumping from page A to page B, and sharing on page B is also disabled.

I want to disable sharing on one page and not on others. So I used the following code:

function onBridgeReady() {
    WeixinJSBridge.call("hideOptionMenu");
}

if (typeof WeixinJSBridge == "undefined") {
    if (document.addEventListener) {
        document.addEventListener("WeixinJSBridgeReady", onBridgeReady, false);
    } else if (document.attachEvent) {
        document.attachEvent("WeixinJSBridgeReady", onBridgeReady);
        document.attachEvent("onWeixinJSBridgeReady", onBridgeReady);
    }
} else {
    onBridgeReady();
}

I used this code on page A, then jumped from page A to page B, and sharing on page B was disabled. Pages that have no jump relationship with page An are fine. Could you tell me how to solve this?
Thank you!


use debugging tools to see if the b page contains code that forbids sharing

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2b48a-4e6ec.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2b48a-4e6ec.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?