add detecting platform for codepad