/*
 * Controller: successCtrl
 */

import { clipboard } from 'electron';

export default (app, window, access_token) => {
    return app.controller('successCtrl', ['$scope', function successCtrl($scope) {
        $scope.access_token = access_token;

        $scope.copy = () => {
            clipboard.writeText(access_token);
        };
    }]);
};

@@ -28,16 +28,79 @@
 rl%0A */%0A%0A
+import path from 'path';%0Aimport notifier from 'node-notifier';%0A
 import %7B
@@ -382,16 +382,307 @@
 _token);
+%0A%0A            let notification = new notifier.NotificationCenter();%0A%0A            notification.notify(%7B%0A                title: 'Success',%0A                message: 'Copied to clipboard.',%0A                appIcon: path.join(__dirname, '..', '..', 'assets', 'images', 'icon.png')%0A            %7D);
 %0A       

Add support to notifications