Help us understand the problem. What is going on with this article?

Errbit の javascript notifier をまともに動くようにするために

More than 5 years have passed since last update.

2013/09/19時点

for Exception Notifier

https://github.com/errbit/errbit

memo

notifier.js にはバグあり。とりあえず動くように。
https://github.com/errbit/errbit/blob/master/public/javascripts/notifier.js

  1. printstacktrace部分(49行目 - 491行目)を下記の最新からとってきてアップデート(backtraceを取れるようにする)
    http://cloud.github.com/downloads/eriwen/javascript-stacktrace/stacktrace-0.4.js
    (http://stacktracejs.com/)

  2. 下記を書き換え ※※ <%= airbrake_javascript_notifier %> を使わない場合

792行目

    Config = {
        options: {
            host: '[MY_HOST_SERVER]',

497行目

    var NOTICE_XML = '<?xml version="1.0" encoding="UTF-8"?>' +
        '<notice version="2.0">' +
            '<api-key>[my-api-key]</api-key>' +

※これって設計上の問題では?

  1. notifyのgetリクエストを送る際に、iframeタグを生成しているけれど、エラーが出ることがあるので(Unsafe JavaScript attempt to access frame with URL)imgタグに変更する

889行目

  var request = document.createElement('img');
  1. httpsのssl証明書も気をつけて!

todo

知見が溜まってきたら、そのうちプルリ送る。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした